Re: Cocoa Drawing vs. Quartz Drawing

2011-01-23 Thread Uli Kusterer
On 23.01.11 01:20, Todd Heberlein wrote: In a Cocoa app is there a preference for using the Cocoa or the Quartz drawing routines? Depends. There are some things you can only do using CGxxx calls, but the NSxxx calls are much more convenient to use. Also, at least originally, iOS only had th

Re: Cocoa Drawing vs. Quartz Drawing

2011-01-22 Thread Seth Willits
On Jan 22, 2011, at 4:20 PM, Todd Heberlein wrote: > In a Cocoa app is there a preference for using the Cocoa or the Quartz > drawing routines? Not really. You'll see both because it depends on what you want to do. Most of the NS stuff is implemented using CG anyway. NSImage is pretty different

Cocoa Drawing vs. Quartz Drawing

2011-01-22 Thread Todd Heberlein
In a Cocoa app is there a preference for using the Cocoa or the Quartz drawing routines? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-adm

Re: Looking for Cocoa Drawing Strategy Advice

2010-05-17 Thread Philip Regan
Thanks for the information! That's actually a bit disappointing to hear about the rulers but I'm glad I asked before I started to really dig in. I'll definitely check out DrawKit for the art. I had no idea that even existed. Cheers -- Philip Regan http://www.oatmealandcoffee.com On May 14, 2

Re: Looking for Cocoa Drawing Strategy Advice

2010-05-14 Thread Graham Cox
On 15/05/2010, at 7:14 AM, Quincey Morris wrote: > In terms of placing these drawing objects within a larger canvas (with > layering, z-ordering, all the other stuff drawing has), you might want to > look into Graham Cox's DrawKit, which designed for this sort of thing. > DrawKit may even have

Re: Looking for Cocoa Drawing Strategy Advice

2010-05-14 Thread Quincey Morris
On May 14, 2010, at 10:41, Philip Regan wrote: > The feature that I'm stuck on sorting on how best to implement is custom > rulers—multiple types of horizontal rulers that can be shown and hidden by > the user together or alone (or none at all), each with their own editable > objects and types

Looking for Cocoa Drawing Strategy Advice

2010-05-14 Thread Philip Regan
project, but I'm looking for strategies and best practices on certain aspects about drawing with views and hierarchies. I've read the Cocoa Drawing Guide and related materials, but I have some questions that those materials either don't cover well (if at all) The feature th

Re: Cocoa Drawing

2009-05-04 Thread Marcel Weiher
On May 1, 2009, at 3:20 , DairyKnight wrote: I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and R

Re: Cocoa Drawing

2009-05-04 Thread Nick Zitzmann
On May 1, 2009, at 4:20 AM, DairyKnight wrote: 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and ReleaseDC. (Sorry I'd use lots of Win32 analogy, coz I've been a Win32 developer for quite a while.) You can lock and then unlock

Re: Cocoa Drawing

2009-05-04 Thread Uli Kusterer
On 01.05.2009, at 12:20, DairyKnight wrote: Hi, all I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(H

Re: Cocoa Drawing

2009-05-04 Thread Alex Kac
On May 1, 2009, at 5:20 AM, DairyKnight wrote: I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and

Cocoa Drawing

2009-05-04 Thread DairyKnight
Hi, all I'm trying to build a simple scribble program with Cocoa, and got some questions I couldn't solve. Hope someone here could help. 1. How can I perform a proper drawing in somewhere else rather than drawRect: ? Like the Win32 GetDC(HWND) and ReleaseDC. (Sorry I'd use lots of Win32