Re: Wrong type of button in IB?
Re: Wrong type of button in IB?
- Subject: Re: Wrong type of button in IB?
- From: Andy Lee <email@hidden>
- Date: Thu, 16 Jun 2005 15:46:24 -0400
On Jun 16, 2005, at 3:34 PM, Julio Cesar Silva dos Santos wrote:
You should declare myButton the way Interface Builder does with
every outlet it creates:
IBOutlet id myButton;
The id type allows you to connect any control to it.
True, that is the default type IB assigns, and yes, you'll be able to
connect anything you want to anything you want, but this just defers
the problem. If your code thinks an outlet points to a table but it
points to an NSButton, it's going to fail. Better IMO to at least
understand how outlet connections work.
--Andy
_______________________________________________
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