Non-native UI controls everywhere. :-/
Vector based UI design tool that generates ObjC
51–60 of 82 posts
Re: Vector based UI design tool that generates ObjC
#52Earlier quoted context omitted.
Think 'Save As NSView Code' for Illustrator.
Your PDF is going to be resolution independent and end up being used in much the same way as the code, so I'm to sure it's a significant difference. I do like the automated color derivation though.
Re: Vector based UI design tool that generates ObjC
#53Earlier quoted context omitted.
It's how Apple has commoditized mobile apps and is now trying the same on the desktop.
Not sure what you are accusing Apple of ... This developer does have a choice you know. He could have made a trial available on his own site. Apple does not disallow that.
When all the customers are going to the supermarket to buy their fresh veg, you can set up your own puny little stall in the alley, but guess what, no one's buying because they can't even find you.
Apple does not allow you to sell iOS apps outside its app store, and there's every reason to believe they are pushing the desktop market in the same direction. Why wouldn't they?
Re: Vector based UI design tool that generates ObjC
#54Here's a short 5 minute walkthrough in designing the Mail app in Mockdown:
Re: Vector based UI design tool that generates ObjC
#55Re: Vector based UI design tool that generates ObjC
#56You could just create you assets in Illustrator/Vector and you would be set for any future resolution increases. However the PNGs would still increase your bundle size. What I'm curious about, maybe someone here has the answer is if there would be a significant performance gain from using Core Graphics over just loading a PNG?
Conventional wisdom, especially for small images, it is much more efficient to draw them with Core Graphics than use a image, more so if there is transparency in the image.
This will even be true for non-ios systems. Microsoft has said for years, that generating a 16x16 image is faster than getting it from disk (depending on complexity and disk speeds).
Plus, code does tend to be more compact (again, within reason), so it is less that has to be loaded when your application starts.
Re: Vector based UI design tool that generates ObjC
#57I love the execution of this app, but I disagree with the underlying idea for most cases. Drawing your UI is never ever going to be as cheap as loading a converted PNG (which Apple's modified pngcrush converts for you). I think a lot of devs have the draw/vector vs. precomposed bitmap tradeoff the wrong way round. Drawing all of your gradated UIButtons with CoreGraphics methods is a false economy compared to just loa…
There's also no reason you can't build your images the first time they're used, and save them out to PNG files for successive uses (if profiling determines that it is indeed more optimal). Even if you end up using graphics at runtime, you'll save work by using code to generate your graphics.
For instance, simply write utility programs to generate all of your graphics with code -- this is definitely faster than photoshop when you have buttons in lots of different languages. It's also useful if you want to use a font where it's not legal to embed it. (You can generate all of your button imagery using code and localization files, then remove the embedded fonts and use the generated PNG files in the release version.)
Re: Vector based UI design tool that generates ObjC
#58I love the execution of this app, but I disagree with the underlying idea for most cases. Drawing your UI is never ever going to be as cheap as loading a converted PNG (which Apple's modified pngcrush converts for you). I think a lot of devs have the draw/vector vs. precomposed bitmap tradeoff the wrong way round. Drawing all of your gradated UIButtons with CoreGraphics methods is a false economy compared to just loa…
What about localization? That combined with what others have mentioned below adds up to a lot of imagery. There's also no reason you can't build your images the first time they're used, and save them out to PNG files for successive uses (if profiling determines that it is indeed more optimal). Even if you end up using graphics at runtime, you'll save work by using code to generate your graphics. For instance, simply…
Re: Vector based UI design tool that generates ObjC
#59I would pay a lot of money for something like this that worked across platforms (Linux, Windows, OSX).
Re: Vector based UI design tool that generates ObjC
#60I love the execution of this app, but I disagree with the underlying idea for most cases. Drawing your UI is never ever going to be as cheap as loading a converted PNG (which Apple's modified pngcrush converts for you). I think a lot of devs have the draw/vector vs. precomposed bitmap tradeoff the wrong way round. Drawing all of your gradated UIButtons with CoreGraphics methods is a false economy compared to just loa…
Using something like the Apple-provided CGLayer, you can draw the image once, then use it like a bitmap while it is in memory, AND they can keep it cached on the graphics card. These guys could easily produce code that does that. Reference: https://developer.apple.com/library/mac/#documentation/graph... (it works on iOS too)
(Note that CGLayer is not related to CALayer or CGTransparencyLayer -- they are absolutely separate things. CALayers are incredibly useful in practice; CGLayer was kind of a dead end.)