• 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: Selector runs only once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selector runs only once


  • Subject: Re: Selector runs only once
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 3 Sep 2003 15:25:29 +0200

Am Mittwoch, 03.09.03 um 14:00 Uhr schrieb Sanri Parov:

I mean, when I use 'mySelector' for the first time, its owner class is
called and everything is ok.

In Objective-C you are *not* normally dealing with classes. You are dealing with *instances* of classes.

If I do some other things which deal with other classes and then return
to the one which owns 'mySelector' it seems the class "forgets" (pardon
me for the silly language) that my table has to do with 'mySelector'
and so it's useless.

So I think you should rephrase that sentence. Maybe someone could help then. As it is, I have no idea what you are talking about.

I think the problem is within the choice of awakeFromNib.
What is the method is always called whenever there's something that
deals with a class? It's init? It's initialize? Is there something like
a 'recall' method?

-awakeFromNib is called when an object is loaded from a nib file.

-init is called when a new object is created by code.

+initialize is a class method(!) and is called when a class is loaded.

I suggest you read file:///Developer/Documentation/Cocoa/ObjectiveC/ObjC.pdf again.


bye. Andreas.
_______________________________________________
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.

  • Follow-Ups:
    • Hiding an NSControl
      • From: John Stiles <email@hidden>
References: 
 >Re: Selector runs only once (From: Sanri Parov <email@hidden>)

  • Prev by Date: Re: Selector runs only once
  • Next by Date: PopUpButton with a custom apparence using an image
  • Previous by thread: Re: Selector runs only once
  • Next by thread: Hiding an NSControl
  • Index(es):
    • Date
    • Thread