• 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: IB plug-in for iphone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB plug-in for iphone


  • Subject: Re: IB plug-in for iphone
  • From: glenn andreas <email@hidden>
  • Date: Fri, 02 Oct 2009 10:07:20 -0500

I tried to play with this a while ago, and it's actually far more complicated - nibs for the iPhone are built around UIViews (not surprisingly, since that's what they are going to be when they run)

IB inspectors are built around NSViews. Your inspectors need to access the views you created.

Try to compile something, anything, that includes both UIViews and NSViews - they come from different platform SDKs, and trying to use both SDKs will result in tons of conflicts between the two (since both will try to include the same file, but with different preprocessor defines, and sometimes the "same" file isn't the same between the two platforms).

Obviously somebody at Apple is able to do it - I'm betting they've got a special version of the SDK files that are tailored to just such conditions, (and probably invokes private SPIs inside the simulator framework).

Just keep filing duplicate bug requests...


On Oct 1, 2009, at 8:01 PM, Roland King wrote:

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

Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL


_______________________________________________
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


References: 
 >Re: IB plug-in for iphone (From: Roland King <email@hidden>)
 >Re: IB plug-in for iphone (From: Rick Mann <email@hidden>)
 >Re: IB plug-in for iphone (From: Roland King <email@hidden>)

  • Prev by Date: Re: Newbie question: using targets
  • Next by Date: -fwritable-strings not compatible with literal CF/NSString
  • Previous by thread: Re: IB plug-in for iphone
  • Next by thread: Re: How to use gcc-4.3 (or 4.4) in Xcode?
  • Index(es):
    • Date
    • Thread