Re: drawGlyphsForGlyphRange layout issue

2012-09-24 Thread jonat...@mugginsoft.com
On 23 Sep 2012, at 17:33, Kyle Sluder k...@ksluder.com wrote: Attributes are specified on a character, rather than glyph, basis. So if you need to draw your characters with a separate color, you should probably override -showCGGlyphs:positions:count:font:matrix:attributes:inContext: to push

How to calculate NSToolbar height in fullscreen mode

2012-09-24 Thread Nava Carmon
Hi, I have to perform custom animation for NSWindow transition to full screen mode. The window have a NSToolbar in icons-only mode with custom items. How to calculate properly the final frame of such a window in full screen? Seems, that the height of the toolbar in the fullscreen is not the

Re: drawGlyphsForGlyphRange layout issue

2012-09-24 Thread jonat...@mugginsoft.com
On 24 Sep 2012, at 12:49, jonat...@mugginsoft.com wrote: On 23 Sep 2012, at 17:33, Kyle Sluder k...@ksluder.com wrote: Attributes are specified on a character, rather than glyph, basis. So if you need to draw your characters with a separate color, you should probably override

Re: Toddler-proofing an app: selectively disabling function keys?

2012-09-24 Thread Clay Heaton
As I reported yesterday, I had luck with your second suggestion. There are a few minor problems that I would like to fix, discovered as my daughter banged on the keyboard this morning. These are the mappings on an extended keyboard: - F1, F2 - the brightness keys - I would like to disable them

Re: iOS encrypt and stream local video file

2012-09-24 Thread Alex Zavatone
The IPA is just a renamed zip file. Rename the IPA from an .ipa to a zip and decompress. Right click on the contents and choose show package contents and you've access to all the files. The PNG files are most likely converted to Apple's preferred CgBi format unless you or the developer has

Re: Toddler-proofing an app: selectively disabling function keys?

2012-09-24 Thread Ken Thomases
On Sep 24, 2012, at 9:05 AM, Clay Heaton wrote: As I reported yesterday, I had luck with your second suggestion. There are a few minor problems that I would like to fix, discovered as my daughter banged on the keyboard this morning. These are the mappings on an extended keyboard: - F1, F2

Re: NSApplicationShowExceptions - useful on main thread only?

2012-09-24 Thread Corbin Dunn
On Sep 21, 2012, at 10:38 PM, Ken Thomases k...@codeweavers.com wrote: On Sep 21, 2012, at 5:20 PM, Sean McBride wrote: The 10.7 release notes say: AppKit now has the ability to report uncaught exceptions. It is controlled by a user default: NSApplicationShowExceptions (YES/NO)

Re: drawGlyphsForGlyphRange layout issue

2012-09-24 Thread Aki Inoue
To be compatible with NSLayoutManager, you should use -drawWithRect:options:attributes: here instead of using CT. Your source of trouble is using -drawAtPoint: which uses NSStringDrawingUsesLineFragmentOrigin option (layout glyphs from the top instead of the glyph origin). Aki On 2012/09/24,

Re: iOS encrypt and stream local video file

2012-09-24 Thread Gene Crucean
I agree that it's probably not worth the hassle and wouldn't put too many resources into trying to find protection. But why not stream the videos? What about using a php/nodejs script that returns a unique video url for each request. That way the would be hacker wouldn't have direct access by

Re: drawGlyphsForGlyphRange layout issue

2012-09-24 Thread jonat...@mugginsoft.com
On 24 Sep 2012, at 19:19, Aki Inoue a...@apple.com wrote: To be compatible with NSLayoutManager, you should use -drawWithRect:options:attributes: here instead of using CT. Using -drawWithRect:options:attributes: works. 2 questions: 1. Why is -drawWithRect:options:attributes: more compatible

Re: How to calculate NSToolbar height in fullscreen mode

2012-09-24 Thread Lee Ann Rucker
On Sep 24, 2012, at 5:50 AM, Nava Carmon wrote: Hi, I have to perform custom animation for NSWindow transition to full screen mode. The window have a NSToolbar in icons-only mode with custom items. How to calculate properly the final frame of such a window in full screen? Seems, that

Re: iOS encrypt and stream local video file

2012-09-24 Thread Roland King
Almost. The executable is encrypted, but that's it, and there are too many blog posts about decrypting it to mention. All assets are just zipped On 24 Sep, 2012, at 22:55, Alex Zavatone z...@mac.com wrote: The IPA is just a renamed zip file. Rename the IPA from an .ipa to a zip and

Re: toolbar buttons are missing in iOS 6

2012-09-24 Thread Gavin Stokes
Are obviously rogues, using crazy technologies like toolbars and maps. ___ 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