archive-be.com » BE » B » BENNYMICHIELSEN.BE

Total: 348

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • svn – Benny Michielsen
    myself to develop on my MacBook instead of my Windows machine I was now trying to checkout the source code which I had checked in on Google Since MonoDevelop was not working along I had to find another solution It appears that SVN is available via the terminal but like any lazy user I want a GUI The Windows world is blessed with TortoiseSVN and there is a similar program for the Mac called SCPlugin It integrates the SVN commands in the Finder but for some reason it just doesn t want to download code hosted by Google So for now I use SmartSVN it s pretty easy to use Author BennyM Posted on 13 05 2008 Categories Computer Tags finder leopard svn Leave a comment on SVN on a Mac Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono and Raspberry Pi 3 bhldev on Exposing iCal data in WebAPI Archives March 2016 February 2016

    Original URL path: http://blog.bennymichielsen.be/tag/svn/ (2016-04-29)
    Open archived version from archive


  • Cocoa Programming for Mac OS X (Ch 13-16) – Benny Michielsen
    will look up the observers and call the method that was supplied when they subscribed I just recently needed this in a very large application having it at hand would certainly have saved time Chapter 15 Alert Panes In the Net world the MessageBox The only big difference here is that here they can be run modally meaning no other windows will receive events until it is closed or as a sheet meaning it s specific to a certain form Chapter 16 Localization Again this can be compared to the work you need to do in Visual Studio and Net the main difference here is that you can pretty easy extract the strings that need to be localized This is probably possible in the Net world too with some sort of plugin but it s always nice to see it build in like the notifications I m now half way through the book and can say that it s a very pleasant one to read you can get it here I ve also adjusted my view on Objective C and Cocoa while at first it seemed a bit rough and basic I m beginning to see that it s full featured language and framework with very advanced capabilities which don t require a lot of code Though the real challenge will be to build a real application after I ve completed the book I m still staring at the screen sometimes wondering why I got three errors when there s only a missing Oh yeah thanks Lemmy for giving me a tilde over IM I haven t found that key on the keyboard yet p RaiseMan Chapter 13 zip 86 38 kb RaiseMan Chapter 14 zip 87 29 kb RaiseMan Chapter 15 zip 87 67 kb RaiseMan Chapter 16 zip

    Original URL path: http://blog.bennymichielsen.be/2008/06/04/cocoa-programming-for-mac-os-x-ch-13-16/ (2016-04-29)
    Open archived version from archive

  • Cocoa Programming for Mac OS X (Ch 9-12) – Benny Michielsen
    be implemented Archiving is coupled with the NSCoding protocol and the abstract NSCoder class most of the time you ll be dealing with the abstracted class which hides the underlying mechanism Implementing this can be compared to the implementation in Net Though it requires less code to write since your object graph is stored automatically in a file You can configure the extension and the icon from within XCode it was also nice to see that OS X had automatically associated the extension with my application import Foundation Foundation h interface Person NSObject NSCoding NSString personName float expectedRaise property readwrite copy NSString personName property readwrite float expectedRaise end import Person h implementation Person id init super init expectedRaise 5 0 personName New Person return self void dealloc personName release super dealloc synthesize personName synthesize expectedRaise void setNilValueForKey NSString key if key isEqual expectedRaise self setExpectedRaise 0 0 else super setNilValueForKey key void encodeWithCoder NSCoder coder coder encodeObject personName forKey personName coder encodeFloat expectedRaise forKey expectedRaise id initWithCoder NSCoder coder super init personName coder decodeObjectForKey personName retain expectedRaise coder decodeFloatForKey expectedRaise return self end Chapter 11 Basic Core Data You thought it was good well it just gets better All the code we still had to write to add undo redo change tracking and archiving to our application can be done without writing any line as illustrated with this chapter Again we see the power of Key Value coding Chapter 12 Nib Files and NSWindowController Nib files contain the state of the window designed with interface builder this chapter tells you how you can postpone loading a window panel to save memory and resources It also how you can load classes this includes Windows custom classes etc by their name Much like the Activator in Net IBAction showAboutPanel id sender BOOL

    Original URL path: http://blog.bennymichielsen.be/2008/06/02/cocoa-programming-for-mac-os-x-ch-9-12/ (2016-04-29)
    Open archived version from archive

  • Cocoa Programming for Mac OS X (Ch 6-8) – Benny Michielsen
    code Chapter 7 Key Value Coding Key Value Observing A short chapter only 12 pages but it seems to be a core concept If you have an instance variable foo in class Bar you can have other objects be notified of changes to it This can be compared to the Net INotifyPropertyChanged interface and its interweaving with databinding Since the observers call the methods valueForKey and setValue forKey you need to make sure your code follows the strict naming convention to get this functionality If you are changing the observed instance variable in methods you need to call the methods willChangeValueForKey before changing it and didChangeValueForKey after you ve changed it to alert the observers of the change If you find that too much work just call the setter of the instance instead of changing it directly int foo return foo void setFoo int x foo x A handy shortcut to write a property is to use the property and synthesize which do all the work for you the above code can thus be replaced by a simple property readwrite int foo in the header file and synthesize foo in the implementation Overall familiar material I ve seen this in Net and it s available to me in Objective C excellent There even is a valueForKeyPath method that traverses the object tree i e spouse scooter modelName Chapter 8 NSArrayController In this chapter all you ve seen so far comes back but in a different way In the previous chapter you had to write a lot of plumbing to get your list of objects to display and be editable The NSArrayController however can help you on this it allows user interface components be bound using chapter 7 s techniques You can automatically add and delete objects display them and edit

    Original URL path: http://blog.bennymichielsen.be/2008/05/31/cocoa-programming-for-mac-os-x-ch-6-8/ (2016-04-29)
    Open archived version from archive

  • Cocoa Programming for Mac OS X (Ch 1-5) – Benny Michielsen
    the second line I call the doStuff method on myInstance It takes some getting used to also note the naming convention if you re a Net programmer methods start with a capital Method names are also called selectors On the third line I assume I ve an other object called bar and it illustrates how you pass parameters with method calls Finally the last line illustrated how multiple arguments are passed along I raised an eyebrow when I read that if you call a method of on objects which points to nil null no exception will be raised Sure it allows you to omit those tedious if null checks but I ll probably pull out my hair when I m writing more real life application and it s not responding the way it should One final note for this chapter calling methods of your base type is done in the Objective C world by using the super keyword Chapter four talks about memory management This was fairly new for me I knew about it but I ve only written programs in Net C Vb Net managed C or J2EE Java and both environments come with the garbage collector GC which manages memory for you Mac OSX 10 5 introduced the GC as well but it s an option If you turn it on your application will only run on 10 5 and later so if you want to target previous versions you ll have to release and retain yourself It was an interesting read I never had seen an example of how memory can be managed in code you write I ll probably just turn the GC on for stuff I write The chapter ends with stating that you should now have a basic understanding of Objective C and Cocoa

    Original URL path: http://blog.bennymichielsen.be/2008/05/28/cocoa-programming-for-mac-os-x-ch-1-5/ (2016-04-29)
    Open archived version from archive

  • Select boot type – Benny Michielsen
    OS X Ch 1 5 Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono and Raspberry Pi 3 bhldev on Exposing iCal data in WebAPI Archives

    Original URL path: http://blog.bennymichielsen.be/2008/05/24/select-boot-type/ (2016-04-29)
    Open archived version from archive

  • bug – Benny Michielsen
    32 bit editions with SP1 just disable the UAC and you are good to go One install later mayhem strikes I didn t take a screen shot of the end result but believe me it did not look like Leopard or any of the pictures on the site Oh well probably this Vista Business edition doesn t have some necessary component so let s just uninstall it again Hmmm strange the uninstall utility says it s removed but the dialog box asking if I d like to uninstall still stares me in the face On to the control panel Hmm that doesn t load anymore Ok a more drastic option is required to the restore utility Ohw that doesn t show up as well Oops Another way to get to the system restore options is via Accessories and System Tools that did open up the screen The install had stated that a restore point would automatically be created but it hadn t Fortunately for me another program that I installed earlier that day had so I was able to reverse the changes Lessons learned make a restore point before installing programs that have a big impact on your system Some voice inside my head did warn me before I clicked the install button but I chose to ignore it It s nice to be reminded the hard way some times Author BennyM Posted on 13 05 2008 Categories Computer Tags blablabla bug crash oops os x vista windows Leave a comment on Vista OS X Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew

    Original URL path: http://blog.bennymichielsen.be/tag/bug/ (2016-04-29)
    Open archived version from archive

  • Mac keyboard and mouse – Benny Michielsen
    and I now have a wireless Apple mouse and keyboard Installation is child s play unbox the items add the included batteries in their container set up the bluetooth devices can be found on the upper right corner of your desktop turn the device on and you are done The keyboard is the same as the one on the MacBook so I m loving it The MightyMouse does it job even right clicking yay but the buttons on the side are a bit harder to work with I don t think I ll ever use them A nice side effect of the size of the keyboard is that your desk seems to have grown Author BennyM Posted on 24 05 2008 Categories Computer Tags apple keyboard mightymouse mouse Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Updated BlogEngine NET scripts Next Next post Select boot type Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large

    Original URL path: http://blog.bennymichielsen.be/2008/05/24/mac-keyboard-and-mouse/ (2016-04-29)
    Open archived version from archive