• 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: Loading existing NIB file from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading existing NIB file from Cocoa?


  • Subject: Re: Loading existing NIB file from Cocoa?
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 23 Feb 2012 12:16:32 -0800

On Thu, Feb 23, 2012 at 8:49 AM, Howard Moon <email@hidden> wrote:
> HI all,
>
>        I've got an audio plug-in that supports Windows and Carbon, and is being updated to support Cocoa (when the audio host is Cocoa-based).  On the Carbon side of things, I've got a .nib file that contains a few dialogs that I need to present to users, and I'm wondering if and how I can use this older .nib file in Cocoa.  When I try to load the nib using NSBundle loadNibNamed:, I get the following error:
>
> Unable to load the Interface Builder file xxxxxxxxxxxxxx.nib because the object archive is missing. Valid nib files must contain either keyedobjects.nib, objects.nib, or data.nib.
>
>        I'm not sure how to proceed here.  Is it possible to modify my .nib file in some manner so that it works in Cocoa (and still works in Carbon)?  Or, do I have to make a new .xib for use with Cocoa, essentially doubling the work and resources in order to support both types?

No, they're completely different. You will need to recreate your
interface in a Cocoa nib. You should also consider removing or at
least deprecating your Carbon nib.

--Kyle Sluder

_______________________________________________

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: 
 >Loading existing NIB file from Cocoa? (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Was: Re: NSStepper - useless?
  • Next by Date: Semi-Transient NSPopover disappearing when it shouldn't (10.7.3)
  • Previous by thread: Re: Loading existing NIB file from Cocoa?
  • Next by thread: Re: Loading existing NIB file from Cocoa?
  • Index(es):
    • Date
    • Thread