Re: Loading existing NIB file from Cocoa?

2012-02-24 Thread Howard Moon

On Feb 23, 2012, at 2:17 PM, Fritz Anderson wrote:

 ... You know best, but do you really have to support Carbon any more?
 
   — F

Yes, as long as a significant portion of our customer base uses audio hosts 
that are carbon-based.

Heck, we still supported PowerPC until last year... and we got grief for 
stopping that! :-)

-Howard

P.S., Fritz, sorry for the double send, and to your personal email at that!  I 
think I need another coffee! :-)




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Loading existing NIB file from Cocoa?

2012-02-23 Thread Howard Moon
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 xx.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?

Thanks,
Howard


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Loading existing NIB file from Cocoa?

2012-02-23 Thread Seth Willits
On Feb 23, 2012, at 8:49 AM, Howard Moon wrote:

 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?

Carbon and Cocoa nibs are not at all compatible. You will need to create a new 
nib for Cocoa.


--
Seth Willits

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Loading existing NIB file from Cocoa?

2012-02-23 Thread Kyle Sluder
On Thu, Feb 23, 2012 at 8:49 AM, Howard Moon how...@antarestech.com 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 xx.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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Loading existing NIB file from Cocoa?

2012-02-23 Thread Howard Moon
 Oh well, thanks, guys!

-Howard

On Feb 23, 2012, at 12:11 PM, Seth Willits wrote:

 On Feb 23, 2012, at 8:49 AM, Howard Moon wrote:
 
 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?
 
 Carbon and Cocoa nibs are not at all compatible. You will need to create a 
 new nib for Cocoa.
 
 
 --
 Seth Willits


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Loading existing NIB file from Cocoa?

2012-02-23 Thread Fritz Anderson
On 23 Feb 2012, at 10:49 AM, Howard Moon wrote:

 Unable to load the Interface Builder file xx.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?

As the error message says (or at least implies), Cocoa NIBs are archives of 
Objective-C objects, not just shareable specs. They are nothing like Carbon 
NIBs; you have to maintain them separately.

Carbon has had curtailed utility for the last three major versions of the OS — 
nearly five years now. I hear (from Wikipedia) that it's officially deprecated 
in Mountain Lion, so I guess you'll start seeing compiler warnings later this 
year. You know best, but do you really have to support Carbon any more?

— F


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com