Re: NSOutlineView
Re: NSOutlineView
- Subject: Re: NSOutlineView
- From: Mahaboob <email@hidden>
- Date: Wed, 31 Dec 2008 12:53:51 +0530
- Thread-topic: NSOutlineView
I¹m calling this method from a toolbar menu item. I observed that when I¹m
calling this method from an NSButton¹s action method, outlineView displays
the outline data.
Why this happens?
I need to call this method from toolbar menu item only.
How can I achieve this?
On 12/31/08 10:23 AM, "Mahaboob" <email@hidden> wrote:
> I used awakeFromNib method. When I¹m running the program in debugger,
> outlineView get instantiated and shows its value ³0x14c260² and also its
> variables(_numberOfRows ,...) shows the value ³0² and opens the main window.
> From the main window when I¹m clicking the button, that opens the window
> containing outlineView, then outlineView shows its value as ³0x99d6938b² and
> also its variables shows nothing, thus opens the window without outline data.
> Then I selected a table from the popup button (which calls the method for
> loading outline data) then outlineView shows its value ³0x14c260² and displays
> outline data.
>
>
> On 12/30/08 6:33 PM, "Timothy Larkin" <email@hidden> wrote:
>
>> I am assuming that the objects in question are loaded from a nib. In that
>> case, you cannot assume that all the nib objects have been created until the
>> nib loader send those objects an awakeFromNib message. Try writing an awake
>> from nib method for one of the nib classes. If you then put a breakpoint, I
>> think you will find that the outline view has been instantiated, and from
>> there you can call your method that loads the outline data.
>>
>>
>>
>>
>> --
>>
>>
>> Timothy Larkin
>>
>>
>> Abstract Tools
>>
>>
>> Caroline, NY
>>
>>
>>
>>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden