• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New game on ADC Web site?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New game on ADC Web site?


  • Subject: Re: New game on ADC Web site?
  • From: Florent Pillet <email@hidden>
  • Date: Tue, 8 Mar 2005 13:02:41 +0100

Funny one... Here we go:

1. CIImage source should be CIImage *source
2. CIImage result should be CIImage *result
3. CIFilter hueAdjust should be CIFilter *hueAdjust
4. Missing [ at first hueAdjust assignment
5. Wrong method name on same line, should be filterWithName
6. Missing ] after numberWithFloat...

What do we win? ;-)

On 8 mars 05, at 12:12, Stephane Sudre wrote:


On 8 mars 05, at 12:07, Stephane Sudre wrote:

http://developer.apple.com/macosx/tiger/coreimage.html

Find the apparently obvious 5 bugs in the first 12 lines sample code.

[...]
 NSURL *url;
 CIImage source;
 CIImage result;
 CIFilter hueAdjust;

 url = [NSURL fileURLWithPath:path];
 source = [CIImage imageWithContentsOfURL:url];

 hueAdjust = CIFilter filterWIthName:@"CIHueAdjust"];
 [hueAdjust setDefaults];
 [hueAdjust setValue:source forKey:@"inputImage"];
 [hueAdjust setValue:[NSNumber numberWithFloat:2.094
              forKey:@"inputAngle"];

 result = [hueAdjust valueForKey:@"outputImage"];
[...]

The 6th one is less obvious to find if you don't have an eagle's sight.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


--
Florent Pillet                  http://www.florentpillet.com
Freelance software developer/consultant - Palm OS & Mac OS X
ICQ: 117292463                Skype: callto://florent.pillet


_______________________________________________ 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
  • Follow-Ups:
    • Re: New game on ADC Web site?
      • From: Kay Roepke <email@hidden>
References: 
 >New game on ADC Web site? (From: Stephane Sudre <email@hidden>)
 >Re: New game on ADC Web site? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Application Termination for Mac Reboot
  • Next by Date: Re: New game on ADC Web site?
  • Previous by thread: Re: New game on ADC Web site?
  • Next by thread: Re: New game on ADC Web site?
  • Index(es):
    • Date
    • Thread