Re: Instance won't connect to outlet
Re: Instance won't connect to outlet
- Subject: Re: Instance won't connect to outlet
- From: Shaun Wexler <email@hidden>
- Date: Fri, 17 Oct 2003 22:05:43 -0700
On Oct 17, 2003, at 9:54 PM, J. Jones wrote:
I've done a search for this all over and can't find anything about it.
Here's the deal. I have a NSText outlet in one of my classes in
interface
builder. I want to connect an instance of the object to the outlet so
I
can modify the the text depending on conditions in my application. But
when I try to do this I get a message at the bottom of the connections
panel that says "filenameLabel must be of type NSText" while it already
is of type NSText.
I'm sorry if I'm using the wrong terminology here. Total
newbie. I've posted a screenshot of the error msg:
http://besmirched.org/NSText.jpg
Um, you're trying to connect an outlet designated as type (NSText *) to
an object of the NSTextField class. Change the outlet from NSText to
NSTextField in your controller code, or use the type id.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.