Re: Custom View in NSToolbar problem
Re: Custom View in NSToolbar problem
- Subject: Re: Custom View in NSToolbar problem
- From: malcom <email@hidden>
- Date: Wed, 19 Oct 2005 11:15:32 +0200
Why? I've connected the
IBOutlet NSView *view;
to the NSView in IB (see the nib file: searchview.nib) so it should to
return the nib nsview....or not?
Why is it nil?
2005/10/19, j o a r <email@hidden>:
>
> On 19 okt 2005, at 10.51, malcom wrote:
>
> > about implementing custom view objects in NSToolbar but without any
> > results. I cannot see the view inside the toolbar.
>
> You're assigning *nil*, and not a view, to the toolbar item.
> Your method to return a view never returns anything:
>
> =======================================
>
> @implementation MWToolbarSearchView
>
> - (id) init {
> if ( ![super init] ) return nil;
> return self;
> }
>
> - (NSView *) getView {
> return view;
> }
>
> @end
>
> =======================================
>
> j o a r
>
>
>
>
>
--
cocoaworks software
software development
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden