Re: NSSplitViewController : not in Interface Builder library?

2015-09-15 Thread Quincey Morris
On Sep 15, 2015, at 21:57 , Jerry Krinock wrote: > > NSSplitViewController was introduced in 10.10. I’ve read some posts which > imply that there should be such a thing, with associated NSSplitViewItem > objects, in the Object Library in Interface Builder. And it seems like they > certainly

NSSplitViewController : not in Interface Builder library?

2015-09-15 Thread Jerry Krinock
NSSplitViewController was introduced in 10.10. I’ve read some posts which imply that there should be such a thing, with associated NSSplitViewItem objects, in the Object Library in Interface Builder. And it seems like they certainly should be in there. But for the life of me I cannot find any

Re: Should all CoreData relationships be optional in swift?

2015-09-15 Thread Quincey Morris
On Sep 15, 2015, at 20:14 , Jim Thomason wrote: > > So I added this: > > class Foo { > ... > var image : NSImage { get { return self.type.image } } > > } > > The problem is, this image value is used to populate a cell in a Source > Control List. When I add a new Foo, it's immediately added

Re: Should all CoreData relationships be optional in swift?

2015-09-15 Thread dangerwillrobinsondanger
Maybe a default image is appropriate if the FooType is not set or is optional. Sent from my iPhone > On Sep 16, 2015, at 12:14 PM, Jim Thomason wrote: > > I'm doing some porting/updating work and came across an issue. > > I have two objects - which we'll call Foo and FooType. > > Every Foo m

Should all CoreData relationships be optional in swift?

2015-09-15 Thread Jim Thomason
I'm doing some porting/updating work and came across an issue. I have two objects - which we'll call Foo and FooType. Every Foo must have a FooType, and every FooType is associated with multiple Foos. The FooType also has an image associated with it, and the Foo uses that image exclusively. So

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
Sure. The path to the new MacBook images is /System/Library/CoreServices/CoreTypes.bundle/Contents/Library/MJTlrL7BTqUr.bundle However, it would be impossible for me to inspect this. Because I am using this system function, I could only see it go into this new bundle if I was running it on a ne

Re: Working with NSTextFields

2015-09-15 Thread Quincey Morris
On Sep 15, 2015, at 17:29 , Alex Hall wrote: > > I figured text fields were for editing text, and text views were for > displaying it. In fact, text views are the views (as in “NSView", not as in “viewer”) that codify *all* of the Cocoa text editing functionality. Text fields are NSControl wr

Re: Working with NSTextFields

2015-09-15 Thread Alex Hall
That's what I get for assuming. :) I figured text fields were for editing text, and text views were for displaying it. Needless to say, I was completely and profoundly wrong! This text view and related pieces are doing precisely what I wanted; spellcheck, substitutions, no selecting when the app

Re: Working with NSTextFields

2015-09-15 Thread Alex Hall
> On Sep 15, 2015, at 13:20, Jens Alfke wrote: > > >> On Sep 15, 2015, at 9:11 AM, Alex Hall wrote: >> >> * When I call myField.stringValue="some text", that string ("some text") >> appears as expected, but it's highlighted. That means that, when the user >> starts typing, it disappears, de

Re: Identifying a specific Mac model

2015-09-15 Thread Marek Hrušovský
Can you please tell us the path? You can load it with mentioned method, then fire Activity, hit the inspect button on the process (sample one line app that shows the icon in imageview) and one of those lines should be the icon. Many thanks. On Tue, Sep 15, 2015 at 8:58 PM, John Daniel < etresoft.

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
There is a gold icon in the system. I am hopeful that this method will retrieve it, if running on a gold MacBook. If not, people are reporting that it at least displays a silver MacBook icon and that’s as good as I can do on my own. John Daniel > On Sep 15, 2015, at 2:54 PM, Marek Hrušovský wr

Re: Identifying a specific Mac model

2015-09-15 Thread Marek Hrušovský
I am just curious, is there a gold icon in the system or it's a guess that there should be one ? On Tue, Sep 15, 2015 at 3:59 PM, John Daniel < etresoft.apple.li...@icloud.com> wrote: > Thanks! That did the trick. It took a couple of tries to get it working. I > forgot that the namedImage method

Re: Working with NSTextFields

2015-09-15 Thread Jens Alfke
> On Sep 15, 2015, at 9:11 AM, Alex Hall wrote: > > * When I call myField.stringValue="some text", that string ("some text") > appears as expected, but it's highlighted. That means that, when the user > starts typing, it disappears, defeating the purpose of the app putting it > there for the

Working with NSTextFields

2015-09-15 Thread Alex Hall
Hello list, I have an NSTextField, and I can get/set its value by its stringValue property. However… * When I call myField.stringValue="some text", that string ("some text") appears as expected, but it's highlighted. That means that, when the user starts typing, it disappears, defeating the pur

Re: Identifying a specific Mac model

2015-09-15 Thread John Daniel
Thanks! That did the trick. It took a couple of tries to get it working. I forgot that the namedImage method returns a scaled down image. it is a little counter-intuitive, but you have to scale the image up and then it will pick the bigger image in the icns file. I still don’t know if it will d

Re: Adding Constraints in Code

2015-09-15 Thread Dave
Hi, I changed the Background Color of the Flipped Clip View and it seems to be constrained to the Scroll View anyway, e.g. I set: pValidationIssueScrollView = Red. pValidationListStackView = Blue. pValidationClipView = Green. I then add one item to the StackView, now when I resize the Window to

Re: Adding Constraints in Code

2015-09-15 Thread Dave
> On 14 Sep 2015, at 22:51, Jonathan Hull wrote: > > It looks like these are the constraints inside of the detailView (that hold > it’s sub-parts together). Doesn’t really tell us anything about the > constraints holding the detailView itself in place... > > Thanks, > Jon No, not explicitly,

Re: best way to implement a clickable grid?

2015-09-15 Thread Jonathan Mitchell
> On 15 Sep 2015, at 01:17, Patrick J. Collins > wrote: > > Hi everyone, > > I am looking to implement something that would look somewhat like a > graphic equalizer. Meaning, a grid of blocks... Clicking on a single > grid block would change the appearance of all cells directly under it.. >

Re: . Re: API to determine status of System Integrity Protection?

2015-09-15 Thread Charles Srstka
> On Sep 15, 2015, at 1:37 AM, Stephane Madrau wrote: > > What's wrong with using csr_check() and csr_get_active_config(). That's > nothing else than what csrutil uses... Are these functions considered as > SPI ? They are in the kernel sources... > And using SPI shouldn be worse than parsing a sh