Re: Toddler-proofing an app (disabling spotlight keyboard shortcut)?

2012-09-22 Thread Ken Thomases
On Sep 21, 2012, at 9:39 AM, Clay Heaton wrote: > My 20 month old daughter loves to bang on the keys of the keyboard. I made > a simple cocos2d app that shows random animal pictures (with noises) when > she presses keys. (This has proved very popular with her and she now can > identify all of the

Problem with MKUserTrackingBarButtonItem

2012-09-22 Thread Laurent Daudelin
Since moving to iOS 6, it seems that the MKUserTrackingBarButtonItem that I was using with my map to give the user control over the tracking is still working but not changing its own image depending on the tracking mode. Basically, when the map has a tracking mode of MKUserTrackingModeNone, the

Migrating to iPhone 5 screen size

2012-09-22 Thread Rick Mann
Wow. After an hour of searching, I can't find any Apple docs that tell me the basic changes I need to make for the new iPhone 5 screen size. Some searching online has not turned up very authoritative answers. One source said all one needs to do is include a default-h...@2x.png image. But my app

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Rick Mann
Well, sure enough, simply including the appropriately-sized launch image was enough. But the docs don't actually say this in any place I could find. On Sep 22, 2012, at 2:53 , Rick Mann wrote: > Wow. After an hour of searching, I can't find any Apple docs that tell me the > basic changes I nee

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Roland King
On 22 Sep, 2012, at 5:53 PM, Rick Mann wrote: > Wow. After an hour of searching, I can't find any Apple docs that tell me the > basic changes I need to make for the new iPhone 5 screen size. Some searching > online has not turned up very authoritative answers. One source said all one > needs

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Roland King
On 22 Sep, 2012, at 6:08 PM, Roland King wrote: > > There isn't one (a document that is). Just make an image, any image, of the > right side, and drop it into the correct slot in Xcode 4.5 for your project, > Xcode 5 should show an empty hole for 'Launch Image Retina (4-inch)'. Build > and ru

Re: Share NSView between processes

2012-09-22 Thread Zak Nelson
Thanks for the detailed response and apologies for not mentioning my external constraints upfront. >As stated ­ "share an NSView between processes" ­ it's not possible. >Even on a more abstract level, it's generally not the way things are >done. Why do you think you need/want to do this? I have

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Bertil Holmberg
Have a look at the iOS Human Interface Guidelines There you will find Transition Case Studies->Transitioning Between iOS-Based Devices->Running on iPhone 5 This has several examples of how you can change your layout for the larger screen. There is also a link to Launch Images which include: F

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Roland King
well that's useful - how on EARTH were you supposed to find that, how did you find it? Ah I think I see, Xcode just downloaded a new iOS6 docset on my Macbook Pro about an hour ago, now typing 1136 into the search box points you to the Custom Icon and Image Creation Guidelines. I just checked

Re: iOS:targeting iOS3 through iOS6

2012-09-22 Thread davelist
On Sep 21, 2012, at 11:31 PM, Rick Mann wrote: > > On Sep 21, 2012, at 12:29 , Igor Elland wrote: > >>> 1. Is this correct? If not, how do I target old and new devices? > > No. Set the deployment target to 3.0. You'll have to take care not to use any > new APIs, though. Apple doesn't provid

Re: drawGlyphsForGlyphRange layout issue

2012-09-22 Thread Ross Carter
On Sep 21, 2012, at 8:33 PM, Graham Cox wrote: > NSLayoutManager adopts the NSGlyphStorage protocol. That protocol declares a > method, -layoutOptions, and one of the flags it can return is > NSShowInvisibleGlyphs. Simply returning that flag may be all you need to do. I haven't kept up with re

Re: Migrating to iPhone 5 screen size

2012-09-22 Thread Gene Crucean
Keep in mind that you can always just include a blank white image for a splash temporarily until a proper one is created. This is one of the first things I do when I setup a new project. http://www.genecrucean.com/tmp/PortraitAndLandscapeLaunchImages.zip <-- here's a zip for those of you intereste

Re: How to prevent Segue with modal form-sheet and AutoLayout from resizing my view?

2012-09-22 Thread Michael Crawford
This code was being called out of the -viewDidLoad context of the main view. By calling it asynchronously using GCD instead of performing the segue directly, the problem goes away. I'm not sure I would call this a solution. It feels more like a work-around, as I suspect the root cause is some

KVO change dict not reflecting edits in UI

2012-09-22 Thread Erik Stainsby
Hello again list, I have a custom object class RSPerson with a handful of string properties. I have registered a singleton undoManager to observe changes, but the change dict is always coming up symmetrical. Edits made to the properties through UI do not appear in the change dict. However sett

Re: KVO change dict not reflecting edits in UI

2012-09-22 Thread Kyle Sluder
Your pattern here seems backwards. Undo managers typically don't observe objects themselves. Model objects register reverse actions with the undo manager when their properties change. In your case, you might consider overriding -willChangeValueForKey: to register the undo action to revert the p

Drawing Text in a PDF Context

2012-09-22 Thread douglas welton
Hi All, I am trying to create a pdf document that contains a grid of images with titles underneath. I successfully create the pdf with the image, but the text does not appear. My code, more or less, follows the examples in the Quartz 2D guide for drawing text. But obviously I am doing somet

Re: Share NSView between processes

2012-09-22 Thread Jens Alfke
On Sep 22, 2012, at 3:18 AM, Zak Nelson wrote: > This framework renders HTML content and the user can interact with it. The > framework only gives you access to the NSView which it renders into. Since > the content is rendered in the subprocess, which is hidden, I'm trying to > translate the inp

toolbar buttons are missing in iOS 6

2012-09-22 Thread Gavin Stokes
We have an app in the store that's now broken because a critical screen's toolbar is blank. There's nothing funky done to present it; the screen is just a view loaded from a XIB, which has the toolbar and buttons defined. Worked fine up until iOS 6. Anybody else see a problem like this? Thanks.

Re: Share NSView between processes

2012-09-22 Thread Zak Nelson
Thanks Jens. CEF (Chromium Embedded Framework) has some advantages over WebView. It's cross platform, provides more extensive hooks into the web view, allows for remote debugging, and automatically sandboxes the HTML code in its own process. In my case, the HTML will come from third-parties so i

Re: toolbar buttons are missing in iOS 6

2012-09-22 Thread Laurent Daudelin
I haven't seen this. I have seen an MKUserTrackingButtonBarItem that doesn't set its image correctly after the MKMapView it's associated with changes the user tracking but I didn't get a single reply from here, so I guess nobody had a clue and I'm the only one in the entire universe of iOS to su

Re: iPad drawing and screen rotation

2012-09-22 Thread David Duncan
On Sep 21, 2012, at 3:18 PM, Donald Hall wrote: > I have a master detail project where I draw Bezier paths in the detail view. > On rotation from portrait to landscape (or vice versa) the proportions of the > drawings are distorted. For example, a circle in one orientation becomes an > oval in