• 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: IB 3.2.x bringing back IB (only) edit of outlets and actions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB 3.2.x bringing back IB (only) edit of outlets and actions?


  • Subject: Re: IB 3.2.x bringing back IB (only) edit of outlets and actions?
  • From: Kevin Cathey <email@hidden>
  • Date: Wed, 21 Oct 2009 23:16:30 -0500

Hopefully this will clear things up, this is the behavior of class syncing/editing/etc. in IB 3.2:

====================================
XCODE INTEGRATION

Interface Builder knows about the following items in the Xcode project your document is part of:
(1) All of the Objective-C, Ruby, Python, and AppleScript classes.
(2) The outlets (IBOutlet) and actions (IBAction) each class defines.
- Outlets can either be on instance variables or properties
- Actions for Mac OS X must have the :(id)sender argument, this is not required for iPhone OS

Interface Builder also adds the public classes, actions, and outlets for each of the frameworks your project links against.

Whenever you make any changes to source files in your Xcode project (e.g. adding outlets/actions), these changes will automatically appear in Interface Builder. If you do not see classes, actions, or outlets you expect to see, you can use the Classes Tab of the Library. Find the class you want information on in the list (or search for it), and then choose the Definitions tab in the bottom area of the window. This will show you every thing that helps define the class (project headers, headers you've manually imported, document-only changes, headers from frameworks, etc).

Is IB editing of class definitions back in the main stream?
Because of the integration with Xcode, we recommend that you edit your classes in Xcode, and let those changes come seamlessly over to Interface Builder.

====================================
RENAMING CLASSES AND THE CLASS COMBO-BOX

If I have a controller with name: "MyClassA" how do I tell IB that that class name changed to "MyClassB" ?
To change the name of a class, you must do it from Xcode. If you use the Refactor tool in Xcode to rename a class, then Xcode will automatically rename instances of that class that appear on objects in your NIB files.

The Class combo-box in the Identity Inspector for an object is simply a statement to Interface Builder of what that class will be at runtime. As you work with the class in Interface Builder, we will show the actions/outlets associated with that class. But changing the value of that combo-box will not change any source code.


IB parsing of .h files is still broke and doesn't have the features I want. Xcode synching seems good in theory, but the synch is not powerful enough.
Outside of what I've mentioned above, what are you looking for? Please file bug reports if you feel there are areas where we could do better.

However, in the previous IB it seemed to rename the class itself and that did not make sense.
This was not the case in any version of Interface Builder. I agree that if it was, it would certainly not make sense.


You should read the Interface Builder 3.2 release notes to see what else you can do with the classes tab when it comes to working with your Xcode projects, classes, etc:
http://developer.apple.com/mac/library/releasenotes/DeveloperTools/RN-InterfaceBuilder/index.html#//apple_ref/doc/uid/TP40001016-SW17

Kevin

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >IB 3.2.x bringing back IB (only) edit of outlets and actions? (From: lbland <email@hidden>)
 >Re: IB 3.2.x bringing back IB (only) edit of outlets and actions? (From: lbland <email@hidden>)

  • Prev by Date: Re: atoi() with wchar Arabic Digits
  • Next by Date: Interface Builder 3.2 Release Notes
  • Previous by thread: Re: IB 3.2.x bringing back IB (only) edit of outlets and actions?
  • Next by thread: Textual Find in Xcode Run Log
  • Index(es):
    • Date
    • Thread