• 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: What does it mean when po puts % before class name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does it mean when po puts % before class name?


  • Subject: Re: What does it mean when po puts % before class name?
  • From: Ken Ferry <email@hidden>
  • Date: Fri, 30 Jul 2004 17:06:52 -0400

On Fri, 30 Jul 2004 16:22:02 -0400, Jim Correia <email@hidden> wrote:
> In case my question wasn't clear...
>
> @interface Foo : NSView
>
> should [fooInstance isKindOfClass: [NSView class]] return NO after the
> posing?
>
> It appears to my sample code.

If the order of events is..

foo = [[NSView alloc] init];

[[MyImposter class] poseAsClass:[NSView class]];

then you will get NO for

[foo isKindOfClass:[NSView class]];


After the posing, [NSView class] returns what you think of as
MyImposter. So looking at Greg's diagram, is foo a kind of 'NSView'?
No.

-Ken
_______________________________________________
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:
    • Re: What does it mean when po puts % before class name?
      • From: Jim Correia <email@hidden>
References: 
 >Re: What does it mean when po puts % before class name? (From: Greg Parker <email@hidden>)
 >Re: What does it mean when po puts % before class name? (From: Jim Correia <email@hidden>)
 >Re: What does it mean when po puts % before class name? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: setNeedsDisplayInRect
  • Next by Date: Re: The problem with bindings
  • Previous by thread: Re: What does it mean when po puts % before class name?
  • Next by thread: Re: What does it mean when po puts % before class name?
  • Index(es):
    • Date
    • Thread