Re: Create a window with status bar at its bottom, how to do?
Re: Create a window with status bar at its bottom, how to do?
- Subject: Re: Create a window with status bar at its bottom, how to do?
- From: Jens Alfke <email@hidden>
- Date: Sun, 20 Jul 2008 15:51:34 -0700
On 19 Jul '08, at 8:10 PM, Cloud Strife wrote:
Hi everyone. I am interested to create a window with status bar at its
bottom. Hmm, you can see Xcode editor window as an example, once we
open a
.m source file, the editor window has a status bar at its bottom.
In Interface Builder, just move the bottom of the main scrollview up
about 16 pixels from the bottom of the window, and put a wide skinny
NSTextView along the bottom. Set the resizing behavior so it's
attached to the left, bottom and right edges but stretches
horizontally. You'll want to make the text non-editable and non-
selectable.
Then just declare an NSTextView* as an IBOutlet in your window
controller class, and wire a connection from that outlet to the text
field. At runtime you can call -setStringValue: on that instance
variable to change the status message.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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