Re: NSOutlineView
Re: NSOutlineView
- Subject: Re: NSOutlineView
- From: Mahaboob <email@hidden>
- Date: Tue, 30 Dec 2008 15:09:34 +0530
- Thread-topic: NSOutlineView
I put breakpoint there but the OutlineView shows nil.
On 12/30/08 2:49 PM, "Timothy Larkin" <email@hidden> wrote:
> I would put a breakpoint there and confirm that OutlineView is not nil
> when you call reloadData.
>
> Sent from my iPhone
>
> On Dec 30, 2008, at 3:57 AM, Mahaboob <email@hidden> wrote:
>
>> I'm calling this method from the action method that opens this
>> window. I
>> used the code:
>> - (IBAction) openMediaWindow: (id) sender
>> {
>> [cbChooseDatabase selectItemWithTitle:@"Default table"];
>> [self medialistSelectionChanged];
>> [OutlineView reloadData];
>> [MediaWindow makeKeyAndOrderFront:sender];
>> }
>>
>>
>> On 12/30/08 2:17 PM, "Timothy Larkin" <email@hidden> wrote:
>>
>>> Depending on when you call the method, the outlet for the outline
>>> view
>>> may be nil. For instance, if you call the function from an init
>>> method
>>> for some other object in the nib.
>>>
>>> Sent from my iPhone
>>>
>>> On Dec 30, 2008, at 12:03 AM, Mahaboob <email@hidden> wrote:
>>>
>>>> My application uses an NSPopupButton and NSOutlineView. PopupButton
>>>> shows
>>>> all the table names in the database and the outlineView displays the
>>>> data in
>>>> the corresponding table selected from the popupButton. It is working
>>>> fine. I
>>>> also need to display one default table's data in the outlineView
>>>> when I'm
>>>> opening this window. So in the opening method of the window I called
>>>> the
>>>> same method used for the PopupButton's selection changed, and it
>>>> runs that
>>>> method but it doesn't fires the events for the OutlineView. So the
>>>> outlineView shows nothing. How can I fires the events for
>>>> outlineView in
>>>> this method ?
>>>>
>>>> Thanks in advance
>>>> Mahaboob
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> 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
>>
>>
_______________________________________________
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