Access to NSArrayController's NSMutableArray?
Access to NSArrayController's NSMutableArray?
- Subject: Access to NSArrayController's NSMutableArray?
- From: Dave Sopchak <email@hidden>
- Date: Mon, 19 Jan 2004 09:37:42 -0800
Hi all,
A happy MLK day to all, and may the march for human rights the world
over never cease!
I have updated my telescope controller app to use Controller objects
where possible, and have run into a snag.
I replaced my NSMutableArray of guide stars with an NSArrayController.
So far things have been great, I can do more with less code.
My problem is that I have to continually update one of the
NSArrayController's NSMutableArray's guide stars (the moon).
NSArrayController does not allow access to its NSMutableArray instance,
and any methods to get the first object from NSArrayController will
only return the first object in the order shown in my table view (ie
first object changes with sort order).
Is there any elegant way to get a particular object out of
NSArrayController? I have held on to the pointer for the moon's
position when adding it to the NSArrayController, but changing the
coords via setMoon do not result in a live update of the moon's
position in the table view- it only updates when the user selects the
Moon in the table view.
Short of a brute force search and destroy, is there any way for me to
alter an object of my choosing that is held by NSArrayController, and
still have it update the table view?
Thanks,
Dave
_______________________________________
The sun never sets on the search for darker skies.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.