There is a good thread going on over at Clickable Bliss that explains how you can have your code run on OS X 10.3 and use new classes in OS X 10.4 or 10.5 if they are available.
The trick is to use NSClassFromString to check if the new classes exist and setting the XCode deployment [...]
Daring Fireball posts an iPhone crash log from the iPhone Mail.app. Lots of interesting bits for would be iPhone programmers….
Process: MobileMail [67] Path: /Applications/MobileMail.app/MobileMail Version: N/A (N/A) Code Type: [...]
Cocoia has an excellent tutorial explaining how to make your own Leopard style toolbar buttons.
Subscribe to my RSS feed!
Google Desktop has an Apple scripting interface:
Subscribe to my RSS feed!
© Photographer:Kathy Wynn | Agency: Dreamstime.com
Daniel Jalkut on the fact that if you register as an Observer on a Cocoa collection you will get notifies when items are added or deleted (ie: when the collection itself changes) but not when the individual items inside the collection change:
To me, mmalc’s explanation just confirms [...]
Even if you didn’t make it to WWDC this year (some are disappointed with the content but most agree the labs were worthwhile), there is lots of good info floating in the blogosphere this week as a result. Check out this set of videos from ArsTechnica. Included are interviews with Brent Simmons, Gus [...]
In case you’re looking for how to have XCode stop inserting the Copyright MyCompanyName tag in new files, Color Me Cocoa has the solution. Simply execute the following command in a terminal window and set the string to your own name or company:
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions ‘{ ORGANIZATIONNAME = “Joe Programmer”; }’
This comes from the [...]
Every programmer knows that feeling of flow when the code is coming fast and furious. Interuptions during the day are bad enough but what about when you have to leave the code over night to say, gasp, sleep or spend time with your family?
Daniel Jalkut has a nice solution: I usually leave uncompilable [...]
Scott Stevenson has an interesting post on the dangers of getting your KVO’s in a twist.
When you setup a KVO compliant attribute in your Cocoa program, you need to provide two accessors - a getter of the form varname and a setter of the form setVarname. The case and convention of using the ’set’ [...]
© kupuk. Powered by WordPress using the DePo Skinny Theme.