Re: Cocoa method to determine if application is running on iPhone

2010-02-09 Thread MARC BLATT
more reasons it makes a lot more sense to design your > application based on available capabilities rather than your perceived notion > of what is an iPhone vs iPod Touch. > > On Feb 9, 2010, at 3:57 PM, MARC BLATT wrote: > >> Thanks. So I guess the answer is there'

Re: Cocoa method to determine if application is running on iPhone

2010-02-09 Thread MARC BLATT
On Feb 9, 2010, at 3:23 PM, David Duncan wrote: > On Feb 9, 2010, at 3:19 PM, MARC BLATT wrote: > >> Is there a method for determining whether the app is running on an iPhone or >> iPod Touch? > > This is one of those questions that is always followed up with "what

Cocoa method to determine if application is running on iPhone

2010-02-09 Thread MARC BLATT
Is there a method for determining whether the app is running on an iPhone or iPod Touch?___ 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-dev-admi

Re: Strange Behavior

2010-02-07 Thread MARC BLATT
Thanks to all. Not one of my better days. Forgot to save. :( On Feb 7, 2010, at 5:27 AM, Alastair Houghton wrote: > On 6 Feb 2010, at 00:44, MARC BLATT wrote: > >> I have the following code in viewWillAppear: for my iPhone dev project >> (iPhone Development SDK Boo

Re: Strange Behavior

2010-02-07 Thread MARC BLATT
Thanks to all. Not one of my better days. Forgot to save. :( On Feb 7, 2010, at 9:05 AM, Matt Neuburg wrote: > On Fri, 5 Feb 2010 16:44:40 -0800, MARC BLATT said: >> self.summaryLabel.text = self.movie.summary; >> NSLog(@"%@ sold %@ because %@", self.

Strange Behavior

2010-02-06 Thread MARC BLATT
I have the following code in viewWillAppear: for my iPhone dev project (iPhone Development SDK Book, Chapter 4, p.63): - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.titleLabel.text = self.movie.title; NSNumberFormatter *formatter = [[

Text Fields not Updating when Overridden setNilValueForKey: Called

2008-08-24 Thread Marc Blatt
Hello All, While determining if the 10.4+ formatter has a bug re failing to call the overridden setNilValueForKey: (which I have determined that it does), I wrote the following code: - (void)setNilValueForKey:(NSString *)key { if ([key isEqual:@"unformattedNumber"]) { NSLo

Re: setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Marc Blatt
THX Keary, but I'm thinking that this is either a bug or not the proper way to approach the 'nil' issue when dealing with an app that is 10.4+. The reason I say this is that, when I switch the formatter in IB from Mac OS X 10.4+ to Mac OS X 10.0+ in the Number Formatter Attributes, setNilVa

setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Marc Blatt
OK, so I have an table view text cell that has a number formatter attached in Interface Builder. In order to protect against throwing an exception, I've overridden setNilValueForKey: as follows: - (void)setNilValueForKey:(NSString *)key { NSLog(@"setNilValueForKey: has been successfully c