Ah okay - thanks. I am now doing this:

if( [prefs objectForKey:@"alarm1Hour"] == nil ){
    ...

On Wed, Dec 16, 2009 at 11:33 AM, Scott Ribe <scott_r...@killerbytes.com>wrote:

> > integerForKey
>
> Returns an integer, not a pointer. See the docs.
>
> If you want to check if the key exists, then objectForKey will return nil
> of
> the key is not found.
>
> --
> Scott Ribe
> scott_r...@killerbytes.com
> http://www.killerbytes.com/
> (303) 722-0567 voice
>
>
>


-- 
http://ericd.net
Interactive design and development
_______________________________________________

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to