• 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
Re: Obj-C, class methods and instance methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C, class methods and instance methods


  • Subject: Re: Obj-C, class methods and instance methods
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 20 May 2002 00:55:43 +0200

On Monday, May 20, 2002, at 12:34 , Aram Greenman wrote:

You can't wire a class as a target in Interface Builder, only an instance.

But you can do so in code:

[foo setTarget:[Bar class]];

In a sense, I think you can do that (partially) directly in IB too: although I haven't tried, I am pretty sure you might use a class as a File'
s Owner.

Well, it is somewhat pathological, and you would need to provide accessor methods for *all* outlets, but it should work all right. Don't you just love ObjC? ;)
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
References: 
 >Re: Obj-C, class methods and instance methods (From: Aram Greenman <email@hidden>)

  • Prev by Date: Re: [OT] Utility window architecture question
  • Next by Date: Re: AltiVec optimization in Cocoa?
  • Previous by thread: Re: Obj-C, class methods and instance methods
  • Next by thread: Re: Obj-C, class methods and instance methods
  • Index(es):
    • Date
    • Thread