Re: IB plug-in for iphone
Re: IB plug-in for iphone
- Subject: Re: IB plug-in for iphone
- From: Roland King <email@hidden>
- Date: Fri, 02 Oct 2009 09:01:57 +0800
Exactly - this may be drifting towards the edge of suitable for the
XCode list but .. if you take a look at the bundle which exists in the
Developer directory it looks very similar to other bundles.
I've always assumed that IB uses the simulator frameworks to show the
iphone widgets, and those are just x86 against a different toolkit and
the rest is just normal IB.
So you sort of want to get your original widget linked up against the
Sim toolkit, I guess as a static library not a framework as there's no
framework target for iphone OS. Then perhaps start a new IB plug-in
project, remove the embedded framework it builds, the one where you
normally put your widgets and replace that with a link to your libarary
so the objects are available. I then get a bit confused about how you
create the NIBs you need, despite the documentation saying there is no
magic there, that bit always seemed to me like total magic.
If you can get all those bits done the rest of it, the entry point from
IB etc, listing the nibs, is all OS X code. Were I any good with any of
the command line tools at all I'd go hunt around there and see what
frameworks the stuff in the Developer directory uses.
There's a devil in the details there somewhere, but the individual bits
seem fairly tractable. Hopefully we'll see it one day.
Rick Mann wrote:
I think it's harder than that. To display the widget, IB needs to
execute your view's code. For iPhone, that view is going to be
implemented against UIKit, not AppKit. Although, the more I think about
it, the more it seems that they've already got all that stuff working
(at least in the simulator context).
On Oct 1, 2009, at 06:22:42, Roland King wrote:
radar:7267692
I looked at the bundle in the dev directory, it really seems very,
very similar indeed. I got the feeling all that was really needed was
someone who seriously understood IB plug-ins and was hot with build
settings and it would be possible to make a template which builds the
embedded control bundle with one load of settings for the sim and the
interface builder plugin with a different load of settings for IB.
How exactly a custom inspector would talk to the widget is a bit of a
mystery of course.
I hope it gets implemented at some point.
On 01-Oct-2009, at 2:17 AM, Rick Mann wrote:
On Sep 30, 2009, at 06:53:12, Roland King wrote:
Does the current XCode (3.2) support building Interface Builder
plugins for iPhone? I have a custom control and thought hey that
would be cool, started a project and instantly realized it couldn't
even vaguely be built as a plugin is of course OS X and the control
itself uses UIKit and all the other nice stuff.
+1
_______________________________________________
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
_______________________________________________
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