Re: Using outlets from NSView subclass
Re: Using outlets from NSView subclass
- Subject: Re: Using outlets from NSView subclass
- From: Dennis Falling <email@hidden>
- Date: Wed, 6 Oct 2004 18:13:20 -0500
Yeah, I instantiated my subclass, created an outlet for a progress indicator, added a progress indicator to the same window that has the view in it, and linked the outlet to the indicator. I then added the indicator to my .h file with "
IBOutlet NSProgressIndicator *progressBar;".
Is it possible that the view I'm instantiating and linking to the outlet is not the same view being instantiated by the app? The reason I ask this is that I don't need to instantiate the view for normal uses (using it as the receiver for a drag operation)- I'm simply trying to instantiate it for this lone outlet.
Thanks,
-dennis
On Oct 6, 2004, at 6:00 PM, James Spencer wrote:
How are you creating the NSView subclass instance from which you are trying to access the outlet? Do you actually have a progress indicator instantiated in a nib? Is your NSView subclass instantiated in the same nib?
Spence
On Oct 6, 2004, at 5:12 PM, Dennis Falling wrote:
Okay- my bad, I misunderstood the question.
Yes, it is nil. It's being called after awakeFromNib. No outlets I make for the subclass work, whether I place them in a normal place in the main window, or if I put them inside the view by opening it up first.
-dennis
On Oct 6, 2004, at 2:30 PM, j o a r wrote:
That's not what Nick asked. Check the value of the outlet in code!
When do you try to access it - before or after awakeFromNib?
j o a r
On 2004-10-06, at 21.06, Dennis Falling wrote:
I've quadruple-checked the outlet- it's connected in IB.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden