ksignorini
Registered
I have an NSNumber object called "initiative" that I need to use its compare method on.
Unfortunately, compare isn't doing what I thought it would so I want to rewrite it.
I have no idea how to write the first line of the method, though--the declaration!
I have the code I want to use within the method, but I don't know how to specify the method.
I tried this:
- (NSComparisonResult)compareNSNumber *)aNumber
but I know this isn't right because it doesn't say anything about WHICH NSNumber object to work with. I only want to use this for the object called "initiative" and no other NSNumber type objects.
Can this be done somehow?
Thanks,
Kent!
Unfortunately, compare isn't doing what I thought it would so I want to rewrite it.
I have no idea how to write the first line of the method, though--the declaration!
I have the code I want to use within the method, but I don't know how to specify the method.
I tried this:
- (NSComparisonResult)compareNSNumber *)aNumber
but I know this isn't right because it doesn't say anything about WHICH NSNumber object to work with. I only want to use this for the object called "initiative" and no other NSNumber type objects.
Can this be done somehow?
Thanks,
Kent!