FW: Implementing a drawing canvas
FW: Implementing a drawing canvas
- Subject: FW: Implementing a drawing canvas
- From: darf <email@hidden>
- Date: Tue, 20 Sep 2005 10:26:29 -0500
Trying again. Previous posts have all been returned or mysteriously
disappeared.
Howdy,
The Sketch example has some oddities as far as the drawing canvas.
I would like to see how one would use the Sketch example and make the NSView
stay centered within a scroll view. I have tried using Interface Builder and
making the springs outside of the NSView dynamic ( the view inside of the
scroll view's clip view ). Based on everything I have read this should
keep the NSView centered unless the NSView is larger than the parent view.
Been trying to make this work for a while. Would appreciate a good example
of a canvas that can be navigated ( assuming NSView or subclass of NSView ).
Regards,
David Farmer
coreaudiovisual
On 9/16/05 2:58 PM, "Tommy Nordgren" <email@hidden> wrote:
>
> Sep 16, 2005 kl. 9:40 PM skrev Sherm Pendley:
>
>> On Sep 16, 2005, at 3:04 PM, Tommy Nordgren wrote:
>>
>>
>>> I wonder wether anyone knows of any examples, or useful weblinks
>>> on implementing
>>> an Object Based drawing canvas with Cocoa. With Object Based, I
>>> mean drawing
>>> with discrete objects that can be selected individually.
>>>
>>
>> Have you looked at the "Sketch" example that's included with Xcode?
>>
>> /Developer/Examples/AppKit/Sketch/
>>
>> sherm--
>>
>> Cocoa programming in Perl: http://camelbones.sourceforge.net
>> Hire me! My resume: http://www.dot-app.org
>>
>>
> The Sketch Example it not particularly useful for this purpose.
> It don't show whats I'm after,
> implementing a canvas class that is efficient with a large data set.
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> .com
>
> This email sent to email@hidden
>
>
------ End of Forwarded Message
------ End of Forwarded Message
--- Begin Message ---
- Subject: Re: Implementing a drawing canvas
- From: darf <email@hidden>
- Date: Fri, 16 Sep 2005 17:01:01 -0500
Howdy,
The Sketch example has some serious flaws as far as the drawing canvas.
I would like to see how one would use the Sketch example and make the NSView
stay centered. I have tried using Interface Builder and making the springs
outside of the document dynamic. Based on everything I have read this should
keep the NSView centered unless the NSView is larger than the parent view.
Then it should be held within a scroll view ( if that is what we wish ).
Been trying to make this work for a while. Would appreciate a good example
of a canvas that can be navigated ( assuming NSView or subclass of NSView ).
Regards,
David Farmer
coreaudiovisual
On 9/16/05 2:58 PM, "Tommy Nordgren" <email@hidden> wrote:
>
> Sep 16, 2005 kl. 9:40 PM skrev Sherm Pendley:
>
>> On Sep 16, 2005, at 3:04 PM, Tommy Nordgren wrote:
>>
>>
>>> I wonder wether anyone knows of any examples, or useful weblinks
>>> on implementing
>>> an Object Based drawing canvas with Cocoa. With Object Based, I
>>> mean drawing
>>> with discrete objects that can be selected individually.
>>>
>>
>> Have you looked at the "Sketch" example that's included with Xcode?
>>
>> /Developer/Examples/AppKit/Sketch/
>>
>> sherm--
>>
>> Cocoa programming in Perl: http://camelbones.sourceforge.net
>> Hire me! My resume: http://www.dot-app.org
>>
>>
> The Sketch Example it not particularly useful for this purpose.
> It don't show whats I'm after,
> implementing a canvas class that is efficient with a large data set.
> "Home is not where you are born, but where your heart finds peace" -
> Tommy Nordgren, "The dying old crone"
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> .com
>
> This email sent to email@hidden
>
>
--- End Message ---
_______________________________________________
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