Re: MutableArray losing contents
Re: MutableArray losing contents
- Subject: Re: MutableArray losing contents
- From: Dean Pulsifer <email@hidden>
- Date: Fri, 2 Apr 2010 17:03:38 -0400
The project is based on some Apple sample code. I took the existing
MainMenu.xib with its main window and added another window that included an
NSBrowser view.
The File's Owner didn't have an obvious link to anything else. I am not
using a document. Does this matter?
The class of the controller is PMPrinterTestController (from the sample
code).
The delegate for both windows is my main controller.
My secondary window is actually an NSPanel. Does this make a difference?
I connected the controller directly to the NSBrowser view rather than the
NSPanel that contains it.
Thanks,
Dean
On Fri, Apr 2, 2010 at 4:36 PM, Quincey Morris
<email@hidden>wrote:
> On Apr 1, 2010, at 20:05, Dean Pulsifer wrote:
>
> > The second NSBrowser delegate to get hit is willDisplayCell:atRow:column:
> > When I get to this call, the array has 0 objects. The self pointer is
> still
> > the same.
>
> It's a side issue, but did you check whether the mutable array instance
> variable was nil at this point? That's always worth knowing if some method
> unexpectedly produced a 0/nil result (because sending a message to a nil
> object pointer produces a binary 0 return value -- in most cases).
>
> > Both the primary and secondary windows are connected to the controller in
> > Interface Builder.
>
> What does this mean? What outlets are connected to the controller? What is
> the class of your controller object? A NSWindowController subclass?
>
> More fundamentally, what NIB file organization are you using? Are there
> separate XIB/NIB files for each window? What's File's Owner for each NIB
> file? What is the *window* delegate for each of your windows?
>
>
> _______________________________________________
>
> 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