Add draggable NSTextField
Add draggable NSTextField
- Subject: Add draggable NSTextField
- From: Lorenzo Puleo <email@hidden>
- Date: Fri, 15 Nov 2002 18:11:41 +0100
Hi,
I added to my window a just created NSTextField this way:
NSView *contentView = [mainWindow contentView];
NSTextField *myField;
myField = [[NSTextField alloc] initWithFrame:NSMakeRect(253.0, 130.0, 212.0,
22.0)];
[contentView addSubview:myField];
It works well.
But, how can I set this new object draggable and resizable?
I want the user add fields and move them on the window, just to arrange his
own interface to the program.
Thank you for any suggestion.
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
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.