Have you made the change you suggest and tested it?

On Wed, Jul 10, 2013 at 3:12 PM, Vincent R. <[email protected]> wrote:

> 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];
>       source->imageName = [name copy];
>       source->images = [NSMutableDictionary new];
>       [sources setObject: source forKey: sources->imageName];
>       RELEASE(source);
>     }
>   return source;
> }
>
> I think the line where the new object is added to the sources dictionary
> should be :
>
> [sources setObject: source forKey: source->imageName];
> instead of
> [sources setObject: source forKey: sources->imageName];
>
> What do you think ?
>
>
> ______________________________**_________________
> Gnustep-dev mailing list
> [email protected]
> https://lists.gnu.org/mailman/**listinfo/gnustep-dev<https://lists.gnu.org/mailman/listinfo/gnustep-dev>
>



-- 
Gregory Casamento
Open Logic Corporation, Principal Consultant
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell)
http://www.gnustep.org
http://heronsperch.blogspot.com
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to