What's wrong with this approach ?

2010-06-18 Thread Jean-François Brouillet
Hi. I pulled my hair way too long for this issue and finally decided to solve the problem of the UINavigationBar's topItem's titleView *not* being centred when either of the other two sides had an UIBarButtonItem by ... subclassing UINavigationBar! All my attempts at manipulating the titleView's

Re: Cross XIB references?

2010-06-06 Thread Jean-François Brouillet
Thank you all for hammering this down, maybe I needed it :) I completely forgot about the unique superview thing, and didn't know about the actual bit sharing that UIImage could perform, both of which do settle my use case as a no-no. Thanks. >> Now in *another* nib file I have *another* control

Re: Cross XIB references?

2010-06-06 Thread Jean-François Brouillet
On 6 Jun 2010, at 09:38, Ken Thomases wrote: > On Jun 6, 2010, at 3:12 AM, Jean-François Brouillet wrote: > >> [...] making reference to object id 123 in file one.xib to object id 456 >> in file two.xib should be a walk in the park ... > > You're still not getting i

Re: Cross XIB references?

2010-06-06 Thread Jean-François Brouillet
I can see that my question may not be very clear, so I'm taking another angle :) A few years ago when Spring came out in Java land, I had an "Aha" moment when I realised that it was just about creating singletons all over the place (Spring calls them "beans") without the benefit of a nifty editor,

Re: Cross XIB references?

2010-06-06 Thread Jean-François Brouillet
> • Subject: Re: Cross XIB references? > • User-agent: Microsoft-Entourage/12.23.0.091001 > On Sat, 05 Jun 2010 22:14:22 +0100, Jean-Fran?ois Brouillet > said: > >So ... is there a way to refer to NIB1.objA from NIB2.objB ? > > This is probably the most FAQ in the entire Cocoa universe, so check

Cross XIB references?

2010-06-05 Thread Jean-François Brouillet
Hi. Consider the situation where I have a "root" ImageView in IB. I specify the actual image I want it to hold by just filling/ selecting which of the existing images are already present in the project, using the "Image" input box of the Image View Attributes inspector. Then I can just set the ti