If you assume that @"" string constants are NOT globally uniqued in
a binary, but only to a given compilation unit, then
ThisClassUniqueObservationContext could be a constant string:
There is the chance that someone else will use the string
@"FBFroobazzleValueObservationContext" as an observation context
elsewhere in the inheritance tree, but I think that a) it would be a
programmer error b) is probably not worth losing any sleep over.
And there is certainly a smaller chance of a collision than with an
arbitrarily picked number.
Jim
_______________________________________________
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