• 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
NSImage method problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage method problem


  • Subject: NSImage method problem
  • From: Jericho Hasselbush <email@hidden>
  • Date: Fri, 16 May 2003 07:24:44 -0700

In the method:

- (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(float)delta

when I use 1.0 or a float value for the fraction: argument, I get a compile error:

SimpleGameView.m:29: incompatible type for argument 4 of indirect function call

Which makes absolutely no sense, because I am calling the function as follows:

[image drawInRect:box fromRect:NULL operation:NSCompositeSourceOver fraction:1.0];

thanks for the help

------------------------------------------------------------
Jericho Hasselbush || <email@hidden>

"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-Albert Einstein
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: NSImage method problem
      • From: David Remahl <email@hidden>
    • Re: NSImage method problem
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Future Objective-C changes
  • Next by Date: RE: HTML hexidecimal code from NSColor
  • Previous by thread: Re: [Newbie] reference count
  • Next by thread: Re: NSImage method problem
  • Index(es):
    • Date
    • Thread