Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
is it possible? I want to insert some black spots in between QTMovie objects and insertEmptySegmentAt just keeps the last frame played showing for the programmed duration. I want to just insert some black, but it looks like I have to make an NSImage object to do it. I guess I could just whip up a quick all black image and load that, but I would rather do it programatically.

Any suggestions would be appreciated.
 

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
Create an NSImage, lock focus on it and draw the rectangle of pure black then unlock focus?

Look at the lockFocus method of NSImage (and the unlockFocus method too), the set method of NSColor and finally the fillRect: method of NSBezierPath.

Thanks, but that looks like you won't be able to do that while running "headless"...

I think I'll just go with the black jpeg.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Just make sure you call NSApplicationLoad() if you haven't already, and it'll work fine.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.