• 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: Updating the .m and .h file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Updating the .m and .h file


  • Subject: RE: Updating the .m and .h file
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Wed, 30 Apr 2003 13:41:31 -0400

I generally modify the header in PB, save it, then drag the header's icon to
IB. That tells IB about the outlets. Then you can hook them up in IB.

I second Andrew Thompson's comments. Generating code from IB works well if
it is the first thing you do in your project. In my experience, it's a
whole lot easier to make changes in PB and import them into IB once your
project is well along.

Jonathan

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden]On Behalf Of Michael Hanna
> Sent: Tuesday, April 29, 2003 9:05 PM
> To: email@hidden
> Subject: Updating the .m and .h file
>
>
> After coding in PB for a bit, I realized I've forgotten to add outlets
> to certain buttons in IB.
>
> How do I edit the nib file(by adding the new outlets in IB) and then
> update my corresponding .m file without destroying the coding I've done?
>
> Is it safe to just add the field declarations in IB, create the outlet
> connections, then go into PB and edit the .h file, making sure the
> types are correct and the names are exactly the same?
>
> regards,
> Michael
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Updating the .m and .h file (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: remove alpha channel from bitmap
  • Next by Date: Re: classic equivalent to nsstatusitem?
  • Previous by thread: Re: Updating the .m and .h file
  • Next by thread: Contextual menus, views, and the Control key
  • Index(es):
    • Date
    • Thread