Re: Problem Binding to UserDefaults

2010-12-04 Thread Peter Zegelin
That doesn't appear to be the problem as adding and deleting items are saved. It's only when I change a value that the result isn't saved back to the defaults. I have created a really simple project here: http://fracturedsoftware.com/downloads/developer/UserDefaultsBindingTest.zip If someone c

Re: [CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Ken Thomases
On Dec 4, 2010, at 4:09 PM, Iceberg-Dev wrote: > I'm not trying to be pedantic here, I'm trying to figure out exactly which > characters are accepted and which patterns are supposedly correct. Since bundle identifiers are reverse DNS, they follow the same rules as domain names.

Re: cannot be sent to an abstract object of class

2010-12-04 Thread Sherm Pendley
On Sat, Dec 4, 2010 at 6:56 PM, Stephen J. Butler wrote: > On Sat, Dec 4, 2010 at 5:17 PM, Shane > wrote: >> @interface >> { >>        NSNumber *rate; >>        // ... >> } >> // ... >> #end >> >> - (id) init >> { >>        // … >>        rate = [[NSNumber alloc] initWithFloat:0.0]; >>        //

Re: cannot be sent to an abstract object of class

2010-12-04 Thread Dave DeLong
Ignore me. I didn't get much sleep last night. Stephen apparently did. :) Dave On Dec 4, 2010, at 3:52 PM, Dave DeLong wrote: > NSNumber, like pretty much all "core" types in Foundation, is an abstract > class. You never have an NSNumber. You usually have an NSCFNumber, sometimes > an NSBig

Re: cannot be sent to an abstract object of class

2010-12-04 Thread Stephen J. Butler
On Sat, Dec 4, 2010 at 5:17 PM, Shane wrote: > @interface > { >        NSNumber *rate; >        // ... > } > // ... > #end > > - (id) init > { >        // … >        rate = [[NSNumber alloc] initWithFloat:0.0]; >        // now has retain count of 1 > } > > - (void) myMethod > { >        // ... >  

Re: cannot be sent to an abstract object of class

2010-12-04 Thread Dave DeLong
NSNumber, like pretty much all "core" types in Foundation, is an abstract class. You never have an NSNumber. You usually have an NSCFNumber, sometimes an NSBigMutableNumber, etc. (You also never have an NSArray, but usually an NSCFArray, etc) As such, if you wanted a retained NSNumber, you mu

cannot be sent to an abstract object of class

2010-12-04 Thread Shane
I get the error below when trying to assign a new value (compile error) to rate in myMethod. Why is this NSNumber considered abstract? I would like to give it a new value. @interface { NSNumber *rate; // ... } // ... #end - (id) init { // … rate = [[NSNumber alloc]

Re: [CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Iceberg-Dev
On Dec 4, 2010, at 7:55 PM, Ken Thomases wrote: On Dec 4, 2010, at 12:42 PM, Iceberg-Dev wrote: By "hyphen", does the documentation actually mean a minus glyph (like the one on the numeric keypad) or really the hyphen typographic glyph? If the former, why not just write minus? That ch

Re: iPad: Some popover problems resolved

2010-12-04 Thread Kyle Sluder
Hopefully you files a bug! http://bugreport.apple.com --Kyle Sluder (Sent from the road) On Dec 4, 2010, at 7:11 AM, Phillip Mills wrote: > Yesterday I was getting frustrated that nothing I did in Interface Builder > produced a popover that looked right when I rotated my split view application

Re: [CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Ken Thomases
On Dec 4, 2010, at 12:42 PM, Iceberg-Dev wrote: > By "hyphen", does the documentation actually mean a minus glyph (like the one > on the numeric keypad) or really the hyphen typographic glyph? > If the former, why not just write minus? That character's Unicode name is HYPHEN-MINUS. Calling it

Re: [CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Jean-Daniel Dupas
Le 4 déc. 2010 à 19:42, Iceberg-Dev a écrit : > According to the documentation here: > > http://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html%23//apple_ref/doc/uid/TP40009249-102070-TPXREF105 > > a CFBundleIdentifier valu

[CFBundleIdentifier] Is is really a hyphen or a minus?

2010-12-04 Thread Iceberg-Dev
According to the documentation here: http://developer.apple.com/library/mac/#documentation/General/ Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html%23// apple_ref/doc/uid/TP40009249-102070-TPXREF105 a CFBundleIdentifier value can accept alphanumeric, period and hyphen chara

iPad: Some popover problems resolved

2010-12-04 Thread Phillip Mills
Yesterday I was getting frustrated that nothing I did in Interface Builder produced a popover that looked right when I rotated my split view application to portrait orientation. Not only did it not look the way I wanted, I couldn't get it back to its default appearance either. It had decided t