Re: Problem loading IB plugin [solved]
Re: Problem loading IB plugin [solved]
- Subject: Re: Problem loading IB plugin [solved]
- From: Rick Hoge <email@hidden>
- Date: Wed, 21 Nov 2007 23:46:53 -0500
On 21-Nov-07, at 4:21 PM, Sean McBride wrote:
On 11/21/07 4:00 PM, Rick Hoge said:
Correct. We also had to sprinkle retain/release's all over some
nice GC-
only code to be able to have a correctly working IB plugin. Pity.
When
the code is used in IB, the retain/release do something, when used
in
your GC app they becomes NOPs. Similarly, your code must also be
32-
bit
clean, since IB is a 32-bit only app.
But presumably if you build your framework as a fat binary you could
still link it into a 64 bit app?
Yes. In any case, it's fairly easy to write code that is both 32
and 64
bit clean.
I worked through this, and it turns out the plugin target must be
built as 32 bit *only*, since the InterfaceBuilderKit framework is
only available in 32 bit (so the plugin can't be a 32+64 bit fat
binary). However only the plugin, which is run solely by IB and not
by an actual app, needs to be restricted to 32-bit.
The actual framework, which provides the functionality used by a real
app, can be 32+64 no problem.
This seems to work and run no problem - initially I was worried that
it would not be possible to use interface elements provided by an IB
Plugin in a 64-bit app. It seems that there is no problem.
Thanks again for your helpful responses!
Rick
_______________________________________________
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