Re: App Delegate in Document App

2009-07-31 Thread Michael Hoy
David, You should be adding the AppDelegate object to the MainMenu.xib, which is loaded first and once, what you want. Otherwise a new delegate object is created and set with each document loaded. ~Michael On Jul 28, 2009, at 1:46 PM, David Blanton wrote: In MyDocument.xib I added an

Re: [iPhone] CFAttributedStringRef autorelease - not possible?

2009-07-21 Thread Michael Hoy
... CFGetRetainCount() reports an increase and decrease in the retain count after adding/removing. ~Michael On Jul 21, 2009, at 11:20 AM, Dave Camp wrote: On Jul 19, 2009, at 9:13 AM, Michael Hoy wrote: NSString *m_scanString = @This is a test.; CFDictionaryRef emptyDic = (CFDictionaryRef

Re: NSPasteboard and data types

2009-07-20 Thread Michael Hoy
and data, you can then write methods to convert to strings or whatnot. Michael Hoy michael.john@gmail.com On Jul 18, 2009, at 1:52 PM, Dave DeLong wrote: Hi everyone, I'm playing around with NSPasteboard in 10.5 and want to basically create a copy of the generalPasteboard. I've got two

[iPhone] CFAttributedStringRef autorelease - not possible?

2009-07-20 Thread Michael Hoy
on CFMutableAttributedStringRef) gives EXC_BAD_ACCESS. Everything else works as expected. Is CFAttributedStringRef not castable to id or NSObject* in the iPhone environment? Thanks, ~ Michael Hoy ___ Cocoa-dev mailing list (Cocoa-dev

[iPhone] Custom -sizeWithFont: and CGContextRef question

2009-07-16 Thread Michael Hoy
of a string w/ specified font, not actually draw it. Thanks, Michael Hoy michael.john@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa