Re: programatically updating UI for NSArrayContoller/NSTableView combo
Re: programatically updating UI for NSArrayContoller/NSTableView combo
- Subject: Re: programatically updating UI for NSArrayContoller/NSTableView combo
- From: Quincey Morris <email@hidden>
- Date: Sun, 10 Jan 2010 04:57:43 -0800
On Jan 10, 2010, at 02:54, Russell Gray wrote:
> As for the two arrays:
> subscriptions
> subscriptionsArray
>
> subscriptions is the mutable array that subscriptionsArrayContoller is bound to for its content.
> and subscriptionsArray is a mutable array that I use to read/write my plist file. I did this because subscriptions would just return an array of pointers, and not the actual dictionaries contained within the array.(and i did not know of a way to get the dictionaries from the pointers to write to my plist file.) (like I said, still learning here, so maybe not the best approach)
I'm not entirely sure I understand what you're saying, but I suspect you're applying a C++ or Java understanding of objects to Objective-C, and that doesn't work.
What we *call* an array of Obj-C objects is *really* an array of pointers to objects (and a NSArray isn't even an array of pointers in the C sense -- it's a kind of array behavior, not an array data structure). In Objective-C, every object is a separate memory allocation, and so is always referred to via a pointer. The concept of "getting" an object from its pointer doesn't make any sense in Obj-C terms.
I'm not sure where to go next with this ...
_______________________________________________
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:
This email sent to email@hidden