Re: Question on OS X app submission

2014-09-21 Thread Giacomo Tufano
> Any idea on my original question, though? If I have a helper app embedded in > my bundle, with a bundle ID of its own, does the app store need to know about > that bundle ID, or just the main one? I have on app in the app store that auto-start. The App Store needs only to know about the “main

Custom layout and constraints

2014-09-21 Thread Allan Odgaard
I am overriding `NSView`’s `layout` method to manually place one of my subviews. I can set the frame for this subview, and it works until someone calls `layoutSubtreeIfNeeded` on the subview (which sometimes happens automatically during display). The subview’s `needsLayout` property is `NO`

Re: Custom layout and constraints

2014-09-21 Thread Kyle Sluder
On Sep 21, 2014, at 7:10 AM, Allan Odgaard wrote: > > > That is, if the view has hugging and/or intrinsic content size then the size > from the derived constraints will be used, otherwise `NSZeroSize`. Likewise > the origin will be `NSZeroPoint` unless constrains are added to affect the > pos

Re: return string that is the difference between two other strings

2014-09-21 Thread Jens Alfke
> On Sep 20, 2014, at 11:45 PM, Allan Odgaard > wrote: > > If you need a C API then have a look at > https://code.google.com/p/google-diff-match-patch/ > This^^ looks like exactly what you want, 2551. The online demo is quite impressive:

Re: Question on OS X app submission

2014-09-21 Thread Jim Geist
I’m using SMLoginItemSetEnabled with the helper app. Thanks for the info! > On Sep 21, 2014, at 1:11 AM, Giacomo Tufano wrote: > >> Any idea on my original question, though? If I have a helper app embedded in >> my bundle, with a bundle ID of its own, does the app store need to know >> about

restorableStateKeyPaths versus invalidateRestorableState

2014-09-21 Thread Daryle Walker
These are two methods in NSResponder and they deal with user-interface restore. The docs say that +restorableStateKeyPaths can lead to not needing to use -encodeRestorableStateWithCoder: and -restoreStateWithCoder:. Since those key-path attributes are supposed to be watched with KVO, shouldn’t e

RE: return string that is the difference between two other strings

2014-09-21 Thread Lee Ann Rucker
On 21 Sep 2014, at 13:03, Kyle Sluder wrote: > >> No, it is nowhere near a common operation to perform on strings. >I stand corrected on that front, then (apparently...). Doesn't change the fact >that I need to know how to do it, unless someone is willing to point me in >the direction of a b

Re: Custom layout and constraints

2014-09-21 Thread Allan Odgaard
On 21 Sep 2014, at 16:44, Kyle Sluder wrote: […] how can I ensure the position I set for a subview’s frame in my `layout` override is not (implicitly) changed later? You need to turn on translatesAutoresizingMaskIntoConstraints for the subviews you position manually. That way Auto Layout know

Re: Custom layout and constraints

2014-09-21 Thread Ken Thomases
On Sep 21, 2014, at 9:10 AM, Allan Odgaard wrote: > I am overriding `NSView`’s `layout` method to manually place one of my > subviews. > The problem seems to be that `layoutSubtreeIfNeeded` calls > `resizeWithOldSuperviewSize:` (using the containing view’s size), but > regardless of what’s pa

Re: Writing, then reading JSON

2014-09-21 Thread Charles Jenkins
Just as a test, I changed my writer method to immediately try to interpret the JSON data and reconstitute the project’s data: let structureDict = theProject.getStructureDictionary() let jsonData = NSJSONSerialization.dataWithJSONObject( structureDict, options: nil, error: outError )

WebView and User Interface Restore

2014-09-21 Thread Daryle Walker
Do WebView instances participate in the Resume feature (with +restoreWindowWithIdentifier: state: completionHandler:, etc.), or do I have to manually handle their state (the web-view’s back-forward list and which item is current) myself? — Daryle Walker Mac, Internet, and Video Game Junkie dar

Database Access and Swift? (ODBC, native libraries)

2014-09-21 Thread Andrew Satori
Well folks, it's me again. Your slightly off kilter and sometimes obsessed with database stuff developer... With the upcoming migration to Swift as the language of choice for OS X development, there is a decided lack of tools for getting from Cocoa to the RDBMS' of the world, and unfortunately

NSButton checkbox type with the disable color is not visible in Yosemite

2014-09-21 Thread Appa Rao Mulpuri
Hello List, I have a background view with the black color. And on top of it, I’ve placed a Checkbox with the attributed title with the white color. In enabled mode, text is visible with the white color, but if I make the button to disabled mode (with setEnabled:NO) the text is not visible, only