Re: How to align a custom view in a toolbar ???

2009-05-06 Thread Anders Lassen

Thanks, It solved the problem.

On May 6, 2009, at 10:41 AM, jonat...@mugginsoft.com wrote:

Try inserting an NSToolbarFlexibleSpaceItemIdentifier item into the  
tool bar before your custom view.


On 6 May 2009, at 04:30, Anders Lassen wrote:


Hi,

I am working on a program where I plan to put  a mode selector in  
the upper right corner.


I hope to implement this using a toolbar and a custom view. The  
custom view contains the mode selector, which is a NSSegmented  
control.


So far, I have managed to display the custom view in the toolbar.

But now, I have a severe problem. I can not figure out, how to  
right align the custom view.


I can find anything in the documentation about this, so I hope  
someone in this forum can help.



Thanks,

Anders Lassen


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com

This email sent to jonat...@mugginsoft.com


Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com






___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to align a custom view in a toolbar ???

2009-05-06 Thread jonat...@mugginsoft.com
Try inserting an NSToolbarFlexibleSpaceItemIdentifier item into the  
tool bar before your custom view.


On 6 May 2009, at 04:30, Anders Lassen wrote:


Hi,

I am working on a program where I plan to put  a mode selector in  
the upper right corner.


I hope to implement this using a toolbar and a custom view. The  
custom view contains the mode selector, which is a NSSegmented  
control.


So far, I have managed to display the custom view in the toolbar.

But now, I have a severe problem. I can not figure out, how to right  
align the custom view.


I can find anything in the documentation about this, so I hope  
someone in this forum can help.



Thanks,

Anders Lassen


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com

This email sent to jonat...@mugginsoft.com


Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


How to align a custom view in a toolbar ???

2009-05-05 Thread Anders Lassen

Hi,

I am working on a program where I plan to put  a mode selector in the  
upper right corner.


I hope to implement this using a toolbar and a custom view. The custom  
view contains the mode selector, which is a NSSegmented control.


So far, I have managed to display the custom view in the toolbar.

But now, I have a severe problem. I can not figure out, how to right  
align the custom view.


I can find anything in the documentation about this, so I hope someone  
in this forum can help.



Thanks,

Anders Lassen


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com