On 22 Feb 2011, at 21:30, Ayers, Joseph wrote:

> I have an app that has a NSTableView populated with and array of Tapes  from 
> CoreData. Tapes is declared as:
> @interface Tapes :  NSManagedObject
> {
>    NSString * TapeName;
>    NSDate   * TapeDate;
>    NSString * Notes;
>    NSSet    * VideoClip;
> }
> The TableView is bound to an NSArrayController (tapesController). If I select 
> a row in the table and execute
> 
>    NSArray * tapeSelection = [tapesController selectedObjects];
> 
> 
> 
>    Tapes *  theTape = [tapeSelection objectAtIndex:0];
> 
> the local variable
> theTape = (Tapes*) 0x00000000
> 
> How do I get a valid selection

Logically, this must be because tapesController or tapeSelection is nil. I 
suspect the former.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to