[Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
Hello, I'm having a problem while rebuilding old project which was made with iOS 3.x SDK at first. Currently I'm building it with iOS 6.0 SDK and can be targeted for 4.3. There is a central controller, RootViewController. And when the app is loaded, it creates an instance of

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread Baoming Tian
Why not just add the camera view as sub view of the root ? from my iPhone 在 2012-10-25,下午2:59,JongAm Park jongamp...@sbcglobal.net 写道: Hello, I'm having a problem while rebuilding old project which was made with iOS 3.x SDK at first. Currently I'm building it with iOS 6.0 SDK and can

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Mike Abdullah
On 25 Oct 2012, at 00:27, Graham Cox wrote: On 25/10/2012, at 10:05 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 24 Oct 2012, at 23:31, Graham Cox wrote: On 24/10/2012, at 8:47 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Handling security-scoped bookmarks most

Binding InfoPanel to currentDocument

2012-10-25 Thread Gerriet M. Denkmann
I have a Panel which has a PopUpButton which has it's Content Values bound to an ArrayController. The ArrayController has it's Content Array bound to File's Owner: currentDocument.listOfThings. The File's Owner (aka) Application Delegate: @property (readonly) DocumentSubclass *currentDocument;

Why does a custom CALayer property work differently from a standard one?

2012-10-25 Thread Roland King
Ive been struggling with this for a couple of days now. I have a custom CALayer with a custom property, percentage. It's @dynamic and set up to cause a redraw. +(BOOL)needsDisplayForKey:(NSString *)key { return [ @percentage isEqualToString:key ]; } I return CABasicAnimations for

RE: [Q] a view is associated with more than one view controller?

2012-10-25 Thread Julius Oklamcak
If anyone knows how to solve this problem, please show me your guidance. From some work I did earlier this year for a client, UIImagePickerController needs to be presented modally or in a UIPopoverController. It also doesn't handle being a root view controller very well

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread Roland King
On 25 Oct, 2012, at 10:05 PM, Julius Oklamcak juli...@icodemonks.com wrote: If anyone knows how to solve this problem, please show me your guidance. From some work I did earlier this year for a client, UIImagePickerController needs to be presented modally or in a UIPopoverController. It

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Sean McBride
On Thu, 25 Oct 2012 00:05:44 +0100, Mike Abdullah said: Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error- handling.html is biting you? Interesting bug. I wonder if everyone inside Apple is using ARC these days and therefore expecting ptr-to-object variables to be

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
On 10/25/2012 7:05 AM, Julius Oklamcak wrote: If anyone knows how to solve this problem, please show me your guidance. From some work I did earlier this year for a client, UIImagePickerController needs to be presented modally or in a UIPopoverController. It also doesn't handle being a root view

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
Thank you, Baoming. I tried but it didn't work. Probably I need to chores around it more. I have a few things to do in mind. So, I will retry that. However, UIImagePickerController's view looks to be special as others said. Best, On 10/25/2012 12:53 AM, Baoming Tian wrote: Why not just add

Re: [Q] a view is associated with more than one view controller?

2012-10-25 Thread JongAm Park
On 10/25/2012 7:18 AM, Roland King wrote: On 25 Oct, 2012, at 10:05 PM, Julius Oklamcak juli...@icodemonks.com mailto:juli...@icodemonks.com wrote: If anyone knows how to solve this problem, please show me your guidance. From some work I did earlier this year for a client,

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 4:36 AM, Gerriet M. Denkmann wrote: This works, but I have a strong feeling that there is a very obvious better solution which I somehow cannot see. There actually isn't an obvious solution. -[NSDocumentController currentDocument] isn't KVOable (which is a bummer), but

App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Martin Hewitson
Dear list, I've just had an app update rejected due to an invalid app-sandbox entitlement. In particular, the resolution center says: This app incorrectly implements sandboxing, or it contains one or more entitlements with invalid values. Please review the included entitlements and sandboxing

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Sean McBride
On Thu, 25 Oct 2012 20:11:39 +0200, Martin Hewitson said: keycom.apple.security.temporary-exception.apple-events/key array stringcom.apple.mail/string /array keycom.apple.security.scripting-targets/key dict keycom.apple.Mail/key I think those are

XPC Service Lifecycle

2012-10-25 Thread douglas welton
Hi All, Is there some way to configure my XPC Service helper to continue running even after my main application has exited? I've read thru the Creating XPC Services documentation several times, but the only statement I can find regrading XPC Service lifecycle says that the process is handled

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Martin Hewitson
I forgot to mention: the entitlement is working as it is. Without it, I can't send mails from within the app. With the entitlement as written, I can send mails. Wouldn't the mail sending fail (be blocked by app sandbox) if the entitlement was wrong? Thanks, Martin On Oct 25, 2012, at 08:27

Determining which control has focus

2012-10-25 Thread Erik Stainsby
Hi list, It seems to me this ought to be a trivial function of the OS, but I can't find anything that tells me how to go about this. I have a window which contains half a dozen text fields and three table views. I'd like to be able to use a single key-combo to trigger an insert into the

Re: Determining which control has focus

2012-10-25 Thread Lee Ann Rucker
On Oct 25, 2012, at 11:59 AM, Erik Stainsby wrote: Hi list, It seems to me this ought to be a trivial function of the OS, but I can't find anything that tells me how to go about this. I have a window which contains half a dozen text fields and three table views. I'd like to be able

Re: Determining which control has focus

2012-10-25 Thread Jens Alfke
On Oct 25, 2012, at 11:59 AM, Erik Stainsby erik.stain...@roaringsky.ca wrote: I have a window which contains half a dozen text fields and three table views. I'd like to be able to use a single key-combo to trigger an insert into the current table. To make this work I need to be able to

Re: Determining which control has focus

2012-10-25 Thread Markus Spoettl
On 10/25/12 8:59 PM, Erik Stainsby wrote: It seems to me this ought to be a trivial function of the OS, but I can't find anything that tells me how to go about this. I have a window which contains half a dozen text fields and three table views. I'd like to be able to use a single key-combo to

Re: Determining which control has focus

2012-10-25 Thread Ken Thomases
On Oct 25, 2012, at 2:43 PM, Jens Alfke wrote: On Oct 25, 2012, at 11:59 AM, Erik Stainsby erik.stain...@roaringsky.ca wrote: I have a window which contains half a dozen text fields and three table views. I'd like to be able to use a single key-combo to trigger an insert into the

Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Peter Teeson
Xcode 4.5.1 Lion 10.7.4 I have desktop Document project with a sub-class of NSView. Debug only version as of now. The Window has 2 instances of this sub-class (basically squares that have gradients); The only difference between the two instances are the start and stop mid points for the

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Alex Zavatone
On Oct 25, 2012, at 11:35 AM, Sean McBride wrote: On Thu, 25 Oct 2012 00:05:44 +0100, Mike Abdullah said: Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error- handling.html is biting you? Interesting bug. I wonder if everyone inside Apple is using ARC these days and

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Alex Zavatone
On Oct 25, 2012, at 11:35 AM, Sean McBride wrote: On Thu, 25 Oct 2012 00:05:44 +0100, Mike Abdullah said: Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error- handling.html is biting you? Interesting bug. I wonder if everyone inside Apple is using ARC these days and

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Alex Zavatone
Does it still work if you correct the case of the M in com.apple.Mail? On Oct 25, 2012, at 2:46 PM, Martin Hewitson wrote: I forgot to mention: the entitlement is working as it is. Without it, I can't send mails from within the app. With the entitlement as written, I can send mails.

Re: Security-scoped bookmarks linked to code signing?

2012-10-25 Thread Mike Abdullah
On 25 Oct 2012, at 22:05, Alex Zavatone z...@mac.com wrote: On Oct 25, 2012, at 11:35 AM, Sean McBride wrote: On Thu, 25 Oct 2012 00:05:44 +0100, Mike Abdullah said: Is it possible http://www.mikeabdullah.net/nsurl-bookmark-error- handling.html is biting you? Interesting bug. I

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Jayson Adams
On Oct 25, 2012, at 11:46 AM, Martin Hewitson wrote: I forgot to mention: the entitlement is working as it is. Without it, I can't send mails from within the app. With the entitlement as written, I can send mails. Wouldn't the mail sending fail (be blocked by app sandbox) if the

Re: Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Mike Abdullah
Presumably your NSView subclass implements -drawRect: Is this being called at all for you non-drawing view? If it is being called, is there anything weird about the view or environment at the time? What triggers do you have to cause the view to be redrawn? On 25 Oct 2012, at 21:16, Peter Teeson

Re: Why does a custom CALayer property work differently from a standard one?

2012-10-25 Thread Corbin Dunn
On Oct 25, 2012, at 4:38 AM, Roland King r...@rols.org wrote: Ive been struggling with this for a couple of days now. I have a custom CALayer with a custom property, percentage. It's @dynamic and set up to cause a redraw. +(BOOL)needsDisplayForKey:(NSString *)key { return [

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Kyle Sluder
On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote: But, if you just use the -object in the notification to windowDidBecomeMain: you're fine. So if you keep a reference to that window/document yourself and return it from your own currentDocument that'd work. You also need to watch

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Kyle Sluder
On Thu, Oct 25, 2012, at 02:06 PM, Alex Zavatone wrote: Does it still work if you correct the case of the M in com.apple.Mail? Yes, do check this. IIRC we got bitten recently by a case-sensitivity issue with special entitlements. This problem extends beyond MAS submission; there are places in

Scalability of CALayers

2012-10-25 Thread Graham Cox
I'm wondering how scalable the Core Animation layer model is. When a region of a layer-backed view is updated, does the CA system have a way to quickly identify layers for update, e.g. some sort of spatial hash, or does it simply traverse the whole tree looking for intersections? If the latter

Re: Why does a custom CALayer property work differently from a standard one?

2012-10-25 Thread Roland King
On 26 Oct, 2012, at 5:56 AM, Corbin Dunn corb...@apple.com wrote: Technically, the above code is incorrect. You have to set one of the values, per the header comment. /* The objects defining the property values being interpolated between. * All are optional, and no more than two

Re: Binding InfoPanel to currentDocument

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 3:24 PM, Kyle Sluder wrote: On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote: But, if you just use the -object in the notification to windowDidBecomeMain: you're fine. So if you keep a reference to that window/document yourself and return it from your own

Re: Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Peter Teeson
On 2012-10-25, at 5:40 PM, Mike Abdullah wrote: Presumably your NSView subclass implements -drawRect: Yes my sub-class does implement -drawRect Is this being called at all for you non-drawing view? Yes. Let's refer to the sub-class instances as 1st and 2nd 1st is the one I created first using

Re: Object not being drawn in Cmd + N window. Why?

2012-10-25 Thread Quincey Morris
On Oct 25, 2012, at 18:09 , Peter Teeson ptee...@me.com wrote: Where do I go from here? You're trying to solve too much at one time. The issue is the apparent non-appearance of one of the views, so the issue of where the setMyColor action goes is merely a distraction. 'initWithFrame',

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Martin Hewitson
It does still work with lower-case 'mail'. So, I will just resubmit with a new entitlements file and see what happens. When I asked the MAS for clarification regarding what was actually wrong with my entitlements file, I was told to contact DTS :/ Thanks all! Martin On Oct 26, 2012, at 12:27

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Kyle Sluder
This left hand/right hand bullshit needs to be fixed yesterday. If MAS gives you a rejection, they need to provide the technical staff who can answer questions about that rejection. In my experience, DTS is unprepared to address MAS policy issues. MAS support doesn't have to write your code for

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Graham Cox
On 26/10/2012, at 8:24 AM, Jayson Adams jay...@circusponies.com wrote: The catch is that the lovely folks at the MAS will not actually approve any app that uses these special entitlements. And helpfully, as part of their condescending lecture to you, they will refer you to documentation

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Seth Willits
On Oct 25, 2012, at 9:04 PM, Graham Cox wrote: The communication between the MAS staff and developers is absolutely shocking. I would go as far as to say it's the worst I've experienced from Apple since I first had dealings with them in the mid 80s. They come across as arrogant,

Keyboard shortcut for menu item with submenu?

2012-10-25 Thread Jerry Krinock
Something that has irked me about Cocoa for years… Is there any way to assign a keyboard shortcut to a menu item that has a submenu? The idea is that you hit the keyboard shortcut to select the submenu, then use the arrow keys to navigate through the submenu. The submenu may be populated

Re: App rejection due to app-sandboxing invalid entitlement

2012-10-25 Thread Martin Hewitson
On Oct 26, 2012, at 6:04 AM, Graham Cox graham@bigpond.com wrote: On 26/10/2012, at 8:24 AM, Jayson Adams jay...@circusponies.com wrote: The catch is that the lovely folks at the MAS will not actually approve any app that uses these special entitlements. And helpfully, as part of