• 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
Creating a window when pressing a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating a window when pressing a button


  • Subject: Creating a window when pressing a button
  • From: Jushin <email@hidden>
  • Date: Tue, 9 Dec 2008 16:24:06 -0500

In my application, I have to open a form window when a user press a button.
It is somewhat similar to Apple Mail. In Apple Mail, if you click "New
Message" button from the toolbar, a "New Message" window is appeared.

For now, what I did was something like this:
In IB, I added a window (or a panel), and the associated button shows
the window by using makeKeyAndOrderFront method when pressed.
However, I realized it is not what I want.
In this case, a window is already created, and the button only shows
or hides the window.
What I want is really creating a window when a user presses the
button, so that the user can creates multiple windows by pressing the
button.
I wonder how can I do this.
The window will contain form fields to get values for Core Data models.

Thanks,
_______________________________________________

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

  • Follow-Ups:
    • Re: Creating a window when pressing a button
      • From: Rob Rix <email@hidden>
    • Re: Creating a window when pressing a button
      • From: Damien Cooke <email@hidden>
  • Prev by Date: Setting company checkbox programatically in an AddressBook
  • Next by Date: Re: Setting company checkbox programatically in an AddressBook
  • Previous by thread: Re: Setting company checkbox programatically in an AddressBook
  • Next by thread: Re: Creating a window when pressing a button
  • Index(es):
    • Date
    • Thread