Re: Hash Values in Custom Classes

2011-03-29 Thread Peter Lübke
Am 29.03.2011 um 23:26 schrieb Jean-Daniel Dupas: Am 28.03.2011 um 20:06 schrieb Sean McBride: Are you aware that starting in 10.6, the OS provides 'file reference URLs' which are much like FSRefs. See: Good

Re: Hash Values in Custom Classes

2011-03-29 Thread Jean-Daniel Dupas
Le 29 mars 2011 à 22:04, Peter Lübke a écrit : > > Am 28.03.2011 um 20:06 schrieb Sean McBride: > >> >> Are you aware that starting in 10.6, the OS provides 'file reference >> URLs' which are much like FSRefs. See: >> >>

Re: Hash Values in Custom Classes

2011-03-29 Thread Peter Lübke
Am 28.03.2011 um 20:06 schrieb Sean McBride: Are you aware that starting in 10.6, the OS provides 'file reference URLs' which are much like FSRefs. See: Good to know. I'm very interested in your experience relat

Re: Hash Values in Custom Classes

2011-03-28 Thread Sean McBride
On Sat, 26 Mar 2011 02:23:42 +0100, Peter Lübke said: >To be more detailed: my custom class and its subclasses are wrapper >classes containing file informations. They are based on FSRef rather >than using paths - I do a lot of lengthy iterations so paths are much >too fragile. I also heavily use N

Re: Hash Values in Custom Classes

2011-03-28 Thread Peter Lübke
To be more detailed: my custom class and its subclasses are wrapper classes containing file informations. They are based on FSRef rather than using paths - I do a lot of lengthy iterations so paths are much too fragile. I also heavily use NSSet to store instances, and I wanted -isEqual: t

Re: Hash Values in Custom Classes

2011-03-27 Thread Mike Abdullah
On 27 Mar 2011, at 12:17, Peter Lübke wrote: > >>> If not, about the only optimization from there is a NSHashTable or CFSet >>> setup to test equality on -hash. >> >> Could you point me to a documentation that could help me understand >> NSHashTable? > > Badly expressed - I meant documentati

Re: Hash Values in Custom Classes

2011-03-27 Thread Peter Lübke
If not, about the only optimization from there is a NSHashTable or CFSet setup to test equality on -hash. Could you point me to a documentation that could help me understand NSHashTable? Badly expressed - I meant documentation / sample code about how to use an NSHashTable for such an op

Re: Hash Values in Custom Classes

2011-03-27 Thread Peter Lübke
Am 26.03.2011 um 14:57 schrieb Mike Abdullah: To be more detailed: my custom class and its subclasses are wrapper classes containing file informations. They are based on FSRef rather than using paths - I do a lot of lengthy iterations so paths are much too fragile. I also heavily use NSSe

Re: Hash Values in Custom Classes

2011-03-26 Thread Mike Abdullah
On 26 Mar 2011, at 01:23, Peter Lübke wrote: > Thank you, Mike, for showing me I was taken away by my own fantasy about > hash... > > Am 26.03.2011 um 01:22 schrieb Mike Abdullah: > >> It sounds like you're rather misunderstanding what -hash does. Cocoa classes >> are free to cover the full r

Re: Hash Values in Custom Classes

2011-03-25 Thread Peter Lübke
Thank you, Mike, for showing me I was taken away by my own fantasy about hash... Am 26.03.2011 um 01:22 schrieb Mike Abdullah: It sounds like you're rather misunderstanding what -hash does. Cocoa classes are free to cover the full range of possible hash values. In the meantime, I read so

Re: Hash Values in Custom Classes

2011-03-25 Thread Mike Abdullah
It sounds like you're rather misunderstanding what -hash does. Cocoa classes are free to cover the full range of possible hash values. You can't have a value that "interferes" with the framework; at worse you could reduce performance IF putting custom objects in the same container as framework