When I'm calling [self medialistSelectionChanged]; from - (IBAction)
openMediaWindow: (id) sender, OutlineView shows 0x0 and when I'm calling the
same method from -(IBAction) comboSelectionChanged: (id) sender then
OutlineView shows 0x14c460 in debugger.

On 12/30/08 3:09 PM, "Mahaboob" <mahab...@newtok.com> wrote:

> 
> I put breakpoint there but the OutlineView shows nil.
> 
> On 12/30/08 2:49 PM, "Timothy Larkin" <t...@cornell.edu> 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 <mahab...@newtok.com> 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" <t...@cornell.edu> 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 <mahab...@newtok.com> 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 (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/tsl1%40cornell.edu
>>>>> 
>>>>> This email sent to t...@cornell.edu
>>> 
>>> 


_______________________________________________

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