Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the Item from NSOutlineView's Notifications



Yeah, this is working for me here. I'd check your case and @ signs. :)

- (void) outlineViewItemDidExpand:(NSNotification *)notification;
{
   id    anObject = [notification userInfo], anItem;
    
   if (anObject)
   {
     anItem = [anObject objectForKey: @"NSObject"];
     NSLog(@"outlineViewItemDidExpand: the item's class = %@",
           [anItem class]);
    }
}

- dave

On 6/30/05 8:30 PM, "Seth Willits" <email@hidden> wrote:

> On Jun 30, 2005, at 5:13 PM, Michael McCracken wrote:
> 
>> It really should work with
>> id obj = [userInfo objectForKey:@"NSObject"];
>> 
>> Is that what you're doing? Note that we're using NSObject as a
>> string here.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Getting the Item from NSOutlineView's Notifications (From: Seth Willits <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.