• 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: Equivalent of isKindOfClass for Foundation Types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent of isKindOfClass for Foundation Types?


  • Subject: Re: Equivalent of isKindOfClass for Foundation Types?
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 4 May 2006 18:28:15 +0200


Le 4 mai 06, à 17:44, Christopher Hickman a écrit :

I need to test if the value passed to my NSValueTransformer is an
NSTimeInterval. Since NSTimeInterval is just a typedef from double and not
a class, I can't use the NSObject methods to test its type.


The best I can think of now is to test it with typeof() against
NSTimeInterval, but I think I should really allow any numeric type for this
transformer.


Currently my code says this:

- (id)transformedValue:(id)value;

Why is it "(id) value" and not "(void) value"?


_______________________________________________ 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: Equivalent of isKindOfClass for Foundation Types?
      • From: "Christopher Hickman" <email@hidden>
References: 
 >Equivalent of isKindOfClass for Foundation Types? (From: "Christopher Hickman" <email@hidden>)

  • Prev by Date: Expanding a window and adding controlls dynammicaly.
  • Next by Date: RE: Equivalent of isKindOfClass for Foundation Types?
  • Previous by thread: Equivalent of isKindOfClass for Foundation Types?
  • Next by thread: RE: Equivalent of isKindOfClass for Foundation Types?
  • Index(es):
    • Date
    • Thread