CustomView outlet is always (null)
CustomView outlet is always (null)
- Subject: CustomView outlet is always (null)
- From: Oliver Donald <email@hidden>
- Date: Mon, 27 Oct 2003 09:57:34 -0000
I've been writing an GUI-less Cocoa app as a proof-of-concept, which was
'prooven' over the weekend, and so I started writing the GUI portion. I need
to use a CustomView, but have never used them before.
Apologies for the long winded description, but I am temporarily
internet-less at home and dont have the code here at work...
So I put a new 'IBOutlet ID *sceneView' into my sceneDescription object. I
loaded up InterfaceBuilder, made it read the new header for
sceneDescription, and the little exclamation mark appeared in it's
instantiation icon as expected. I subclassed NSView, called it
RTIGSceneView. I then put a CustomView in my window, set it's Class to
RTIGSceneView, and the change was reflected in the window. Then I control
dragged from my destinationless sceneView object to the CustomView (now a
RTIGSceneView) and connected my sceneView outlet to the RTIGSceneView, and
the exclamation mark disappeared. Saved, compiled and ran. But the
CustomView never recieves any messages sent from sceneDescription, and the
sceneView outlet is always '(null)'.
How do I give sceneDescription access to the CustomView? I'm not sure about
terminology, but I'm guessing that sceneDescription is the data-source for
CustomView and that I've got something backwards.
Any help appreciated!
Thanks,
Oli
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.