• 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
Add draggable NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSDictionary question
  • Next by Date: Sort Array
  • Previous by thread: Posting file too ftp or http server?
  • Next by thread: Sort Array
  • Index(es):
    • Date
    • Thread