• 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: Conditionally modifying NIBs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditionally modifying NIBs?


  • Subject: Re: Conditionally modifying NIBs?
  • From: Jonathan Hess <email@hidden>
  • Date: Wed, 14 May 2008 17:20:38 -0700


On May 14, 2008, at 4:10 PM, Hamish Allan wrote:

On Wed, May 14, 2008 at 11:25 PM, Mike Fischer <email@hidden> wrote:

(I know this can be hacked, and that while verbose it's only xml. But I'd
want my apps building in the next Xcode (sub-)release as well.)

Sure, well, you can't eat your cake and have it ;)

I'd have thought that you could maybe try to automate "Whenever any of
the parts of nib N1 and N2 change that are identical in both nibs I
have to remember to make the changes in both."

You can also use ibtool for verification

How so?

, so I don't buy that
"extremely dangerous" stuff

Just because a tool doesn't crash reading the file, and everything appears to work normally doesn't mean that the file is correct and valid.


As for the original question, you can modify an IB file, to some extent, using ibtool --import and ibtool --export. For example, you might consider placing all of your views and objects in the XIB/NIB, and then using these options to control the isHidden property of various views. That won't be easy though, as it isn't an intended usage of ibtool. I think the best option here is to make the changes in code, and to only use on IB file.

Good Luck -
Jon Hess

, and the bit about backwards compatibility
is irrelevant.


Hamish _______________________________________________

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


  • Follow-Ups:
    • Re: Conditionally modifying NIBs?
      • From: Mike Fischer <email@hidden>
References: 
 >Conditionally modifying NIBs? (From: Mike Fischer <email@hidden>)
 >Re: Conditionally modifying NIBs? (From: "Hamish Allan" <email@hidden>)
 >Re: Conditionally modifying NIBs? (From: Mike Fischer <email@hidden>)
 >Re: Conditionally modifying NIBs? (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: show/hide NSTabView
  • Next by Date: Re: Bypassing Interface Builder
  • Previous by thread: Re: Conditionally modifying NIBs?
  • Next by thread: Re: Conditionally modifying NIBs?
  • Index(es):
    • Date
    • Thread