• 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
Re: Scaling a window background image quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling a window background image quickly


  • Subject: Re: Scaling a window background image quickly
  • From: Ricky Sharp <email@hidden>
  • Date: Sun, 6 Apr 2008 19:55:10 -0500


On Apr 6, 2008, at 3:30 PM, Mike R. Manzano wrote:

It's a shame there isn't a more lightweight technology than Illustrator/PDF that lets you easily draw vector UI elements in a graphical editor with your application's performance in mind.


I create all my artwork with Illustrator and save to PDF. One of the main things I do while authoring is to simply all paths to contain the minimal amount of control points. After saving to PDF, I then run it through an optimization process to remove any PDF meta-data:

PDFDocument* thePDFDocument = [[[PDFDocument alloc] initWithData:theFileData] autorelease];

NSData*	theData = [thePDFDocument dataRepresentation];

I then use NSFileManager's createFileAtPath:contents:attributes: to just write out the PDF data to the same file.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Re: Scaling a window background image quickly (From: Heinrich Giesen <email@hidden>)
 >Re: Scaling a window background image quickly (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Scaling a window background image quickly (From: "Kyle Sluder" <email@hidden>)
 >Re: Scaling a window background image quickly (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: NSTreeController KVO
  • Next by Date: Re: Beginner reading, etc.
  • Previous by thread: Re: Scaling a window background image quickly
  • Next by thread: Delegate not getting called for CATiledLayer
  • Index(es):
    • Date
    • Thread