- (void)getSelectedAccount{ NSString *accountName = @"Bank"; NSLog(accountName);accountName = [[MLoutlineViewController selection] valueForKey:@"name"];NSLog(accountName); //get managedObjectContext in preparation for fetch code moc = [MLappDelegate managedObjectContext]; }
At first glance, try NSTreeController's -selectedObjects and - selectedNodes methods rather than -selection. Also, in my experience I've not found is necessary to bind the selectionIndexPath(s) to the outline view to get it all to work, maybe unbind that as a quick test?
Jon
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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 [EMAIL PROTECTED]