• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSArray not re-sorting when the value of its sort descriptor key changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArray not re-sorting when the value of its sort descriptor key changes


  • Subject: NSArray not re-sorting when the value of its sort descriptor key changes
  • From: email@hidden
  • Date: Tue, 27 Sep 2005 16:45:14 -0700

Hi everybody,

Just got a question. I have an NSArrayController that holds NSManaged objects.
The managed objects have a key (number) that returns a number, and the NSSortDescriptor
also sorts by "number," so whenever I insert an object, the list rearranges itself to the sort description
yet if I edit the value at key "number" NSArrayController doesn't realize the value changed and fails to
re-arrange the array... without subclassing NSArrayController is there anyway to auto-sort when the key
changes without too much trouble?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: interactive command line apps
  • Next by Date: Re: How to deal with Resource Forks from command line
  • Previous by thread: Re: String->HTML
  • Next by thread: Non-default origin scaling problem (NSAffineTransformation)
  • Index(es):
    • Date
    • Thread