Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using an auto incremented NSNumber as attribute in a NSManagedObject



On Thu, Mar 6, 2008 at 5:32 PM, Joshua Preston
<email@hidden> wrote:
> Chris,
>
>  The short answer is for quick look ups.  My application creates a new
>  managed object which represents a new "issue".  When the person done
>  with the entry completes it, they should be issued a "tracking
>  number".  For reasons ubiquitous with telephone support, I am
>  attempting to only utilize numeric values.  So for example, I create a
>  new ticket, I should be able to look it up by a human readable index
>  using very low tech means--think telephone keypad...

You could issue a fetch request at startup, store its @max in some
ivar in a MOC subclass, and use that instead of the local static
variable.

Still a pain, but might do you what you want.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden

References: 
 >Using an auto incremented NSNumber as attribute in a NSManagedObject (From: Joshua Preston <email@hidden>)
 >Re: Using an auto incremented NSNumber as attribute in a NSManagedObject (From: Chris Hanson <email@hidden>)
 >Re: Using an auto incremented NSNumber as attribute in a NSManagedObject (From: Joshua Preston <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.