• 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
How do I detect that a button has been pushed and do something after it's been pushed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I detect that a button has been pushed and do something after it's been pushed?


  • Subject: How do I detect that a button has been pushed and do something after it's been pushed?
  • From: Brian Heibert <email@hidden>
  • Date: Sun, 07 Jan 2007 20:21:34 -0500

Hi,

I am new to XCode.  I am using Interface Builder and the Cocoa Framework
I have used BASIC Programming languages in the past both
FutureBASIC and REALbasic.

In my .nib file I have a window with various interface objects
For example a edit field and some buttons

In my main.m file all I got is

#import <Cocoa/Cocoa.h>

int main (int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}

I am trying to learn Cocoa & XCode so please bare with me
I have also looked at two programming books and still couldn't find my
answer

I want to do something when my Create & Save button is pressed

I have a popup menu with numbers in it
and let't say number 1 was selected

I have a edit field where the user types in some text
I want to save that as a .Rtf file

Brian Heibert
email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How do I detect that a button has been pushed and do something after it's been pushed?
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Different classes instantiated from templates SHARE static members!!!
  • Next by Date: Re: How do I detect that a button has been pushed and do something after it's been pushed?
  • Previous by thread: Re: link problem producing universal binary
  • Next by thread: Re: How do I detect that a button has been pushed and do something after it's been pushed?
  • Index(es):
    • Date
    • Thread