Re: NSButtonImageSource weird code

2013-07-10 Thread Fred Kiefer
On 10.07.2013 22:08, Vincent R. wrote: Le 10.07.2013 21:43, Gregory Casamento a écrit : Have you made the change you suggest and tested it? No I just LOOKED at the source code and I found it "weird". I am not even saying that it doesn't work, not tested anything. If you are not shocked by the

Re: NSButtonImageSource weird code

2013-07-10 Thread Vincent R.
Le 10.07.2013 21:43, Gregory Casamento a écrit : Have you made the change you suggest and tested it? No I just LOOKED at the source code and I found it "weird". I am not even saying that it doesn't work, not tested anything. If you are not shocked by the line it means there is nothing. Oh I thi

Re: NSButtonImageSource weird code

2013-07-10 Thread Gregory Casamento
Have you made the change you suggest and tested it? On Wed, Jul 10, 2013 at 3:12 PM, Vincent R. wrote: > Hi, > > the following method of NSButtonImageSource looks weird : > > NSMutableDictionary *sources = nil; > > + (id) buttonImageSourceWithName: (NSString*)name > { > NSButtonImageSourc

NSButtonImageSource weird code

2013-07-10 Thread Vincent R.
Hi, the following method of NSButtonImageSource looks weird : NSMutableDictionary *sources = nil; + (id) buttonImageSourceWithName: (NSString*)name { NSButtonImageSource *source; source = [sources objectForKey: name]; if (source == nil) { source = [self alloc]; sour