NSTextField: newbie answer and questions
NSTextField: newbie answer and questions
- Subject: NSTextField: newbie answer and questions
- From: ber <email@hidden>
- Date: Thu, 8 Aug 2002 01:13:29 +0200
I started writing obj-c and using cocoa this past weekend so I guess
I'm not a newbie anymore.
Let's see if I can answer the question:
Setting the text in a NSTextFiield
[ (NSTextField *)textField setStringValue: (NSString *)stringValue]
Now a couple questions I meant to ask when I was a newbie:
1) What's NS stand for - NextStep? How about "nib", NextStep Interface
Block"?
Does the "m" in the ".m" file extension of obj-c stand for
something?
2) In Interface Builder I can add an NSTextField and by default it
doesn't show a background
box and I can make it Scrollable. I can't seem to get this
behavior programatically. If I try to make one
I created programatically Scrollable I get the message.
MyObject.m:32: warning: `NSTextField' does not respond to
`setScrollable:'
NSTextField doesn't complain about "setDrawBackground: NO" but it
doesn't seem to have an effect.
I still get a white box behind my text.
Clearly I'm fuzzy on the relationship between NSTextField and NSCell
which seems to embody the methods
I want to use with an NSTextField. I'll be rereading "Overview of
Programming Topic: Text Fields" several more
times but a concrete example will go a long way to help me focus on the
issues. I would like to
create an NSTextField, scrollable, with no background just as IB can,
but programatically.
Thanks,
brian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.