Re: how to add a custom view (a pair of controls) to an NSToolbar in Interface Builder
Re: how to add a custom view (a pair of controls) to an NSToolbar in Interface Builder
- Subject: Re: how to add a custom view (a pair of controls) to an NSToolbar in Interface Builder
- From: Rua Haszard Morris <email@hidden>
- Date: Tue, 30 Nov 2010 11:34:36 +1300
Thank you Joey!
This most certainly works a treat.
cheers
Rua HM.
On 30/11/2010, at 10:59 AM, Joey Hagedorn wrote:
> Rua,
> This won't work with an instance of the "custom view" in the toolbar. A workaround would be to use a borderless (Custom / No Border) NSBox instead of a custom view. This is probably the most straightforward fix.
>
> There is some more info in this older post to the list: http://www.cocoabuilder.com/archive/cocoa/236455-nstoolbaritem-with-custom-view-in-interface-builder-3-leopard.html
>
> --Joey
>
>
>
> On Nov 22, 2010, at 5:29 PM, Rua Haszard Morris wrote:
>
>> What I have tried:
>> - new window NIB file
>> - add a toolbar
>> - add a custom view to the nib
>> - add controls to the custom view - a button, textfield, etc, tweak layout to taste
>> - drag the custom view to the toolbar customise sheet (i.e. the allowed items area)
>> - it looks like the view content will appear - the buttons are drawn in the allowed items area
>> - drag the custom item to the toolbar (so it is in the default set) - oh no, the buttons disappear
>> - simulate the interface - oh no, still no buttons!
>>
>> Perhaps my first email was not concise enough...
>>
>> thanks for the help
>> Rua HM.
>>
>> On 23/11/2010, at 1:55 PM, Graham Cox wrote:
>>
>>>
>>> On 23/11/2010, at 10:02 AM, Rua Haszard Morris wrote:
>>>
>>>> Is this not possible?
>>>
>>>
>>> Yes, it's possible. But your question is too open-ended. What have you tried, what doesn't perform as expected?
>>>
>>> --Graham
>>>
>>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden