• 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
Re: NSArrayController - Mutability lost?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController - Mutability lost?


  • Subject: Re: NSArrayController - Mutability lost?
  • From: Diggory Laycock <email@hidden>
  • Date: Sat, 16 Apr 2005 18:32:12 +0100

On 16 Apr 2005, at 5:01 pm, mmalcolm crawford wrote:


On Apr 16, 2005, at 6:50 AM, Diggory Laycock wrote:

I have an class which is a preference pane's main class - let's call it MyPrefPane. It has an NSMutableArray called 'tickets'.
I also have an NSArrayController, whose contentArray is bound to the tickets array of the MyPrefPane class.



Is the array at some stage retrieved from user defaults?

See <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
    -> NSUserDefaultsController
    -> Arrays

mmalc

Hmm - no, the array isn't touched by UserDefaults at all - I read the thread on that - interesting, and similar - but we're just using an ArrayController here.


Perhaps Uli's vauleTransformer from the example you linked could be useful here - to turn the Array back into into a MutableArray.

I still think it's odd that the controller appears to be altering the class of my model's property.


Diggory Laycock ----------------------- http://www.monkeyfood.com

_______________________________________________
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


  • Follow-Ups:
    • Re: NSArrayController - Mutability lost?
      • From: mmalcolm crawford <email@hidden>
References: 
 >NSArrayController - Mutability lost? (From: Diggory Laycock <email@hidden>)
 >Re: NSArrayController - Mutability lost? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: lockFocus clearing current color
  • Next by Date: Re: PostgreSQL and Objective-C
  • Previous by thread: Re: NSArrayController - Mutability lost?
  • Next by thread: Re: NSArrayController - Mutability lost?
  • Index(es):
    • Date
    • Thread