FROM : I. Savant
DATE : Fri Jul 21 19:28:52 2006
How about NSArrayController's -selectedObjects, -selectionIndex,
and -selectionIndexes methods? They're all great ways of determining
the current selection. :-)
--
I.S.
On Jul 21, 2006, at 1:26 PM, David Alter wrote:
> I think this is a real basic question and I'm just missing
> something. Or maybe I just not using the classes correctly.
>
> I'm using CoreData as a data source for a NSTableView. I have been
> able to connect them using bindings. I created a Controller class
> in IB and was able to bind my interface to my data very nicely. Now
> I have a situation where I want to do an operation on my sub class
> of NSManagedObject based off the selected rows. I have not
> identified a simple way to get to my sub class of NSManagedObject
> for a selected row in NSTableView. Should I not be approaching the
> problem this way?
>
> Thanks you so much for the help.
>
> enjoy
> -dave
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
> 40gmail.com
>
> This email sent to <email_removed>
DATE : Fri Jul 21 19:28:52 2006
How about NSArrayController's -selectedObjects, -selectionIndex,
and -selectionIndexes methods? They're all great ways of determining
the current selection. :-)
--
I.S.
On Jul 21, 2006, at 1:26 PM, David Alter wrote:
> I think this is a real basic question and I'm just missing
> something. Or maybe I just not using the classes correctly.
>
> I'm using CoreData as a data source for a NSTableView. I have been
> able to connect them using bindings. I created a Controller class
> in IB and was able to bind my interface to my data very nicely. Now
> I have a situation where I want to do an operation on my sub class
> of NSManagedObject based off the selected rows. I have not
> identified a simple way to get to my sub class of NSManagedObject
> for a selected row in NSTableView. Should I not be approaching the
> problem this way?
>
> Thanks you so much for the help.
>
> enjoy
> -dave
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005%
> 40gmail.com
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| David Alter | Jul 21, 19:26 | |
| I. Savant | Jul 21, 19:28 |






Cocoa mail archive

