Re: Set a view's delegate using IB

2011-09-09 Thread Jens Alfke
On Sep 9, 2011, at 1:41 PM, Matt Neuburg wrote: > I don't see why. On iOS this is so common that it is in fact built into many > of Apple's own included project templates. m. I think you’re both right. A UIViewController is not the same thing as an NSViewController. —Jens_

Re: Set a view's delegate using IB

2011-09-09 Thread Matt Neuburg
On Wed, 07 Sep 2011 14:12:26 -0700, Quincey Morris said: > There's something code-smelly about putting a view controller ... in a nib > file at all. I don't see why. On iOS this is so common that it is in fact built into many of Apple's own included project templates. m. -- matt neuburg, phd

Re: Set a view's delegate using IB

2011-09-07 Thread Quincey Morris
On Sep 7, 2011, at 13:20 , Luc Van Bogaert wrote: > I have a nib file that contains a "main" view object. This nib file's "file's > owner" is set to be the "main" viewcontroller. The "main" view object in this > nib has an outlet for a "delegate" property. I want to connect this outlet to > an

Re: Set a view's delegate using IB

2011-09-07 Thread Luc Van Bogaert
On 06 Sep 2011, at 21:51, Quincey Morris wrote: > On Sep 6, 2011, at 12:20 , Luc Van Bogaert wrote: > >> I've been struggling trying to set a viewcontroller (loaded by its own nib) >> as the delegate of another (main) viewcontroller's view in IB, while at the >> same time avoiding 'awakefromni

Re: Set a view's delegate using IB

2011-09-06 Thread Quincey Morris
On Sep 6, 2011, at 12:20 , Luc Van Bogaert wrote: > I've been struggling trying to set a viewcontroller (loaded by its own nib) > as the delegate of another (main) viewcontroller's view in IB, while at the > same time avoiding 'awakefromnib' being called twice on the former > viewcontroller ob