• 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: How to add button in NIB by code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to add button in NIB by code?


  • Subject: Re: How to add button in NIB by code?
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 14 Nov 2007 09:59:56 +0000

NSButton *button = [[NSButton alloc] initWithFrame:buttonFrame];
[[window contentView] addSubview:button];

On 14 Nov 2007, at 08:52, shengjun_guan (管聲俊) wrote:

Dear All,
I want add button in NIB by code, not handraulic.How can i do? Waiting for you help!


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to add button in NIB by code? (From: shengjun_guan (管聲俊) <email@hidden>)

  • Prev by Date: After upgrade to leopard: "principalClass is nil" while loading preferencesPane
  • Next by Date: Re: Heads Up: Code generation bug
  • Previous by thread: How to add button in NIB by code?
  • Next by thread: Re: How to add button in NIB by code?
  • Index(es):
    • Date
    • Thread