• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hide baseline separator in toolbar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hide baseline separator in toolbar


  • Subject: Re: Hide baseline separator in toolbar
  • From: Ross Carter <email@hidden>
  • Date: Mon, 30 Apr 2007 19:47:05 -0400

You can subclass NSToolbar and add this:

- (void)setVisible:(BOOL)visible {
	[super setVisible:visible];
	[[[self delegate] window] display];
}

On Apr 29, 2007, at 7:32 AM, Marcus Karlsson wrote:

Hi.

I have a toolbar and I don't want it to show the baseline separator so I'm using this code:

- (void)setupToolbar
{
NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier:MyDocumentToolbarIdentifier];

[toolbar setDelegate:self];

[toolbar setAllowsUserCustomization:YES];
[toolbar setAutosavesConfiguration:YES];
[toolbar setShowsBaselineSeparator:NO];

[documentWindow setToolbar:[toolbar autorelease]];
}


When the application is started, the toolbar is showed without the baseline spearator, but If I hide the toolbar the baseline separator is showed and continuos to be showed if I show the toolbar again. How can I make the baseline separator to always be hidden?_______________________________________________

Cocoa-dev mailing list (email@hidden)

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)

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


References: 
 >Hide baseline separator in toolbar (From: Marcus Karlsson <email@hidden>)

  • Prev by Date: NSManagedObjects bound to an NSPopUpBotton in a toobar
  • Next by Date: Re: Custom View Bindings (was : NSTextView's "data" binding)
  • Previous by thread: Hide baseline separator in toolbar
  • Next by thread: NSImage vs. Pentax PEF files
  • Index(es):
    • Date
    • Thread