RE: CustomView outlet is always (null)
RE: CustomView outlet is always (null)
- Subject: RE: CustomView outlet is always (null)
- From: Oliver Donald <email@hidden>
- Date: Mon, 27 Oct 2003 10:57:54 -0000
So I don't want that method?
I don't think anything is being called too soon. The app loads, and then I
open a scene file which loads data into the sceneDescription object. Once
sceneDescription has verified the data, it sends a message (setSource:) to
the CustomView, giving it a pointer to the NSMutableArray which holds the
data it needs to render.
I put an NSLog(@"Called!") type message in setSource, but it never shows up.
So then I put NSLog(@"Outlet: %@", theCustomViewOutlet) but this always
prints (null).
NSLog's in the NSView inherited methods, such as init's, are getting called.
Thanks,
Oli
-----Original Message-----
From: Alastair J.Houghton [
mailto:email@hidden]
Sent: 27 October 2003 10:25
To: Oliver Donald
Subject: Re: CustomView outlet is always (null)
On Monday, October 27, 2003, at 10:19 am, Oliver Donald wrote:
no...what does that method need to do?
It doesn't. It's just that that's one reason why your outlet might not be
connected; if you did have such a method, then the unarchiving process will
call it rather than just setting the member variable (so if the method
didn't set the member variable, you'd have nil in your sceneView outlet).
When is sceneDescription trying to send messages to sceneView? It could be
that you're sending messages before the nib has finished loading.
Kind regards,
Alastair.
DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately.
The contents of this email must not be disclosed or copied without the
sender's consent. We cannot accept any responsibility for viruses, so please
scan all attachments.
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the company. The company does
not take any responsibility for the views of the author.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.