Re: Vector images on Cocoa

2009-11-19 Thread anderson oliveira

Try pdf files.:)

Anderson
www.anderson-oliveira.com


On Nov 17, 2009, at 1:47 AM, Henri Häkkinen wrote:


Hello.

I would need some way of loading vectorized images from files and  
drawing them to my custom NSView derived class, scaled up or down  
according to the frame of the control. I was thinking of using SVG  
files but there seems not to be any easy way of handling them in  
Cocoa and I feel that implementing my own SVG parser would be of too  
much work. What would you recommend? EPS?


Thank you.

Regards,
Henri Häkkinen

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/andersonoliveirasf%40gmail.com

This email sent to andersonoliveir...@gmail.com


___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Vector images on Cocoa

2009-11-19 Thread Scott Thompson
 I would need some way of loading vectorized images from files and drawing 
 them to my custom NSView derived class, scaled up or down according to the 
 frame of the control. I was thinking of using SVG files but there seems not 
 to be any easy way of handling them in Cocoa and I feel that implementing my 
 own SVG parser would be of too much work. What would you recommend? EPS?
 
 Thank you.
 
 Regards,
 Henri Häkkinen


PDF is a vector graphics image format (the evolution of EPS) and is also the 
default metafile format for Mac OS X.

Scott

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Vector images on Cocoa

2009-11-17 Thread Henri Häkkinen
Hello.

I would need some way of loading vectorized images from files and drawing them 
to my custom NSView derived class, scaled up or down according to the frame of 
the control. I was thinking of using SVG files but there seems not to be any 
easy way of handling them in Cocoa and I feel that implementing my own SVG 
parser would be of too much work. What would you recommend? EPS?

Thank you.

Regards,
Henri Häkkinen

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Vector images on Cocoa

2009-11-17 Thread Jens Alfke
PDF is the standard vector format. NSImage supports loading and  
drawing it.


--Jens   {via iPhone}


On Nov 17, 2009, at 1:47 AM, Henri Häkkinen hen...@henuxsoft.com  
wrote:



Hello.

I would need some way of loading vectorized images from files and  
drawing them to my custom NSView derived class, scaled up or down  
according to the frame of the control. I was thinking of using SVG  
files but there seems not to be any easy way of handling them in  
Cocoa and I feel that implementing my own SVG parser would be of too  
much work. What would you recommend? EPS?


Thank you.

Regards,
Henri Häkkinen

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com

This email sent to j...@mooseyard.com

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Vector images on Cocoa

2009-11-17 Thread Gideon King
WebKit has experimental SVG support 
(http://webkit.org/projects/svg/index.html), but I haven't tried it. 

I have been successfully using PDF vector images, which are pretty much the 
recommended standard format. 

We have also used EPS images, but found that occasionally people have crasher 
bugs with them, and we have not found any workaround. It happens for something 
like 1 person per 5,000 of our users, so it's pretty rare, but we have never 
been able to solve the issue, except by disabling the loading of EPS images for 
those people.

HTH.

Gideon


 I would need some way of loading vectorized images from files and drawing 
 them to my custom NSView derived class, scaled up or down according to the 
 frame of the control. I was thinking of using SVG files but there seems not 
 to be any easy way of handling them in Cocoa and I feel that implementing my 
 own SVG parser would be of too much work. What would you recommend? EPS?

___

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-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com