• 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
IBOutlet SEL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IBOutlet SEL?


  • Subject: IBOutlet SEL?
  • From: Sammi Williams <email@hidden>
  • Date: Sun, 10 Jul 2005 04:13:04 +1200

Hello.

I'd like to have a custom object instantiated in my NIB that has a number of 'targetable' attributes - ie

@interface Blah : NSObject {
    IBOutlet SEL method;
    IBOutlet id target;
    IBOutlet id arg;
}

@end

This is so that I can have a generic reusable class which can fire off multiple events for a single button click, for example. The only possible way I can think of achieving this is having a hidden window with a 'NSTextField' with the name of the selector and pulling that out whenever I want to execute the selector on the target.

But, this seems bad. What other solutions exist? It seems that there are many problems with IB when you want to create even a mildly complex user interface. Things like having multiple [sequentially activated] targets seems like a given.

I found this but it seems ancient: http://www.misckit.com/ Documentation/Classes/MiscTee.htmld/index.html

Thanks for your time,

Sammi

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


  • Follow-Ups:
    • Re: IBOutlet SEL?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: mutableArrayValueForKeyPath gives me valueForUndefinedKey
  • Next by Date: Re: Documentation frustrations
  • Previous by thread: detecting scroll event in webView
  • Next by thread: Re: IBOutlet SEL?
  • Index(es):
    • Date
    • Thread