• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wrong type of button in IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Wrong type of button in IB? (From: Mark Dawson <email@hidden>)
 >Re: Wrong type of button in IB? (From: Andy Lee <email@hidden>)
 >Re: Wrong type of button in IB? (From: Mark Dawson <email@hidden>)
 >Re: Wrong type of button in IB? (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: install app missing??
  • Next by Date: Re: Still can't figure out this overrelease bug
  • Previous by thread: Re: Wrong type of button in IB?
  • Next by thread: Re: Wrong type of button in IB?
  • Index(es):
    • Date
    • Thread