• 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
Just starting out..... Please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Just starting out..... Please help


  • Subject: Just starting out..... Please help
  • From: Graham Wihlidal <email@hidden>
  • Date: Sun, 8 Jul 2001 22:29:31 -0600

Hey list,

I have some questions I was hoping you could answer. I already understand how outlets, actions, etc.. work

But, how do I call a function defined in an Obj-C class that is made for an event from InterfaceBuilder to call it normally?

Eg)

- (void)LoginWindow_Display:(id)sender
{
[LoginWindow center];
[LoginWindow makeKeyAndOrderFront:self];
}

I have that code attached to a button in my interface. It works fine.. How can I call that in code regardless of the interface?

- (void)LoginWindow_Display:(id)sender
{
[LoginWindow center];
[LoginWindow makeKeyAndOrderFront:self];
}

I tried this:

[nil AboutWindow_Display];

It compiled but didn't work. Anyone know how?


My other question is, how can I make a Cocoa editfield into a password field (i.e values hidden by a single character)


Thank you in advance,

Graham


  • Prev by Date: Re: How to make a plugin?
  • Next by Date: Re: Another question on method declarations
  • Previous by thread: Re: Finding methods you don't know exist
  • Next by thread: Re: Just starting out..... Please help
  • Index(es):
    • Date
    • Thread