Re: OsX - HTTP resource load blocked

2015-07-20 Thread Marc Danguy
It’s a classic build, without script After reboot, crash disappears : El Capitan is beta But I cannot load my http resource… > Le 20 juil. 2015 à 15:51, Uli Kusterer a écrit > : > > On 19 Jul 2015, at 10:47, Marc Danguy > wrote: >> a strange one : Code Signature Inval

Adding UIBarButtonItem to UINavigationBar in Storyboard Xcode 7b2

2015-07-20 Thread Rick Mann
I'm trying to install Xcode 7b3, but in the meantime, shouldn't I be able to drag a UIBarButtonItem to the navigation bar in the root view controller of a UINavigationController stack in IB? I don't seem to be able to. Every time I do, it creates a toolbar at the bottom with the item. In this c

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Roland King
> On 21 Jul 2015, at 08:23, Thomas Wetmore wrote: >> >> As a side issue, given that you’ll need to update constraints and re-layout >> your view hierarchy every time the mouse moves during a drag, it might be >> worthwhile retooling your code to use mouseDown/mouseDragged events >> non-modall

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
> On Jul 20, 2015, at 7:53 PM, Quincey Morris > wrote: > > On Jul 20, 2015, at 16:41 , Thomas Wetmore wrote: >> >> Here is the mouse-down method with event loop. As you can see I am calling >> setFrameOrigin in the dragging case and setting frame directly in the >> resizing case. > > So I

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Clearly Quincey can read minds. He is exactly right about the wrongness of my thinking. I hope he doesn’t read my mind too much longer, or he will get horribly tangled in dusty cob webs of ill-conceived good intentions! Tom Wetmore > On Jul 20, 2015, at 5:15 PM, Quincey Morris > wrote: > > O

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Ken, Thank you! The lights are coming on. Things can become quite obvious when they become obvious, can’t they? Tom Wetmore > On Jul 20, 2015, at 5:13 PM, Ken Thomases wrote: > >> On Jul 20, 2015, at 3:30 PM, Thomas Wetmore wrote: >> >> I would really like to be able to do resizing using a

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Gary, I am working on an application that supports the old fashioned research process of using 3x5 index cards to hold sources and research notes. I have a hierarchy of NSView sub-classes to represent the cards. At the top of the hierarchy is CardView which simply provides the ability to drag an

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Quincey Morris
On Jul 20, 2015, at 16:41 , Thomas Wetmore wrote: > > Here is the mouse-down method with event loop. As you can see I am calling > setFrameOrigin in the dragging case and setting frame directly in the > resizing case. So I think you need to retool your thinking. With auto layout, you no longer

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
> On Jul 20, 2015, at 4:45 PM, David Duncan wrote: > > >> On Jul 20, 2015, at 1:30 PM, Thomas Wetmore wrote: >> >> I really try to figure this stuff out. No kidding. I am trying this simple >> experiment: >> >> I define an NSView that has nothing more than a resize handle, defined as a >>

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
Quincey, Thanks. I’m using Xcode Version 6.4 (6E35b). Mac running 10.10.4. Programming in Swift 1.2. Here is the mouse-down method with event loop. As you can see I am calling setFrameOrigin in the dragging case and setting frame directly in the resizing case. override func mouseDown (event:

Re: Drag highlight problems

2015-07-20 Thread John Brownie
On Mon Jul 20 2015 20:39:12 GMT+1000 (PGT) Uli Kusterer wrote: On 20 Jul 2015, at 04:36, John Brownie wrote: Everything works correctly except for the drag highlight. Sometimes, and I haven't been able to work out what the sequence is, the drag highlight will be left on after the drop happens

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Quincey Morris
On Jul 20, 2015, at 13:50 , Gary L. Wade wrote: > > Depending on your design, why not just use an NSSplitView to do all that for > you? Um, before we go API-hog-wild here, we need to rule out the possibility that the OP is just Doing It Wrong™. Because I’m 99.% certain that the OP is just

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Ken Thomases
> On Jul 20, 2015, at 3:30 PM, Thomas Wetmore wrote: > I define an NSView that has nothing more than a resize handle, defined as a > rectangular NSBezierPath in its lower right corner. There are no subviews and > no superviews involved here. I resize the NSView by implementing a mouse > event

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Conrad Shultz
Or NSSplitViewController, if you can target 10.10+. > On Jul 20, 2015, at 1:50 PM, Gary L. Wade > wrote: > > Depending on your design, why not just use an NSSplitView to do all that for > you? > -- > Gary L. Wade (Sent from my iPhone) > http://www.garywade.com/ > __

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Gary L. Wade
Depending on your design, why not just use an NSSplitView to do all that for you? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread David Duncan
> On Jul 20, 2015, at 1:30 PM, Thomas Wetmore wrote: > > I really try to figure this stuff out. No kidding. I am trying this simple > experiment: > > I define an NSView that has nothing more than a resize handle, defined as a > rectangular NSBezierPath in its lower right corner. There are no

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Quincey Morris
On Jul 20, 2015, at 13:30 , Thomas Wetmore wrote: > > When I instantiate one of these views and place it in an NSWindow, I can drag > it around and I can resize it, as expected. Notably, however, I can resize it > down to zero size (and even smaller!), even though the two constraints exist. >

Auto Layout and Resizable NSViews

2015-07-20 Thread Thomas Wetmore
I really try to figure this stuff out. No kidding. I am trying this simple experiment: I define an NSView that has nothing more than a resize handle, defined as a rectangular NSBezierPath in its lower right corner. There are no subviews and no superviews involved here. I resize the NSView by im

Re: Getting resource for key (Swift)

2015-07-20 Thread Charles Srstka
> On Jul 20, 2015, at 2:19 PM, Jan E. Schotsman wrote: > > Still making baby steps in Swift. > > What am I doing wrong this time? > > var fileObject:NSURL = ... > var err:NSError? > var value:Bool? > > var gotValue = fileObject.getResourceValue( &value, forKey: > NSURLIsAliasFileK

Getting resource for key (Swift)

2015-07-20 Thread Jan E. Schotsman
Still making baby steps in Swift. What am I doing wrong this time? var fileObject:NSURL = ... var err:NSError? var value:Bool? var gotValue = fileObject.getResourceValue( &value, forKey: NSURLIsAliasFileKey, error: &err ); // cannot call getResourceValue with this parameter list

Re: dereference UnsafePointer

2015-07-20 Thread Jan E. Schotsman
On Jul 20, 2015, at 5:01 PM, Roland King wrote: asbd.memory().mChannelsPerFrame I think should work - untested asbd.memory.mChannelsPerFrame compiles, so that's probably what I was after. Jan E. ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: KVO detection of changes to selection in NSOpenPanel

2015-07-20 Thread Kyle Sluder
On Mon, Jul 20, 2015, at 11:13 AM, Jonathan Taylor wrote: > This does make me wonder if I should perhaps not be surprised that my use > of keyPathsAffectingValueForKey is not going well, although nothing in > that statement seems to specifically preclude what I am doing from > working on 10.8. Does

KVO detection of changes to selection in NSOpenPanel

2015-07-20 Thread Jonathan Taylor
I’ve just noticed a glitch where my custom file preview box in an NSOpenPanel works fine on OS X 10.9.5 but does not get updated on 10.8.5. Specifically, I declare a dependency of my property on panel.filenames, panel.URL and panel.directoryURL (just to see if ANY of them fire), and none of them

Re: dereference UnsafePointer

2015-07-20 Thread Roland King
> On 20 Jul 2015, at 22:57, Jan E. Schotsman wrote: > > Hello list, > > How can I dereference an UnsafePointer in Swift? > > For example > > let asbd = CMAudioFormatDescriptionGetStreamBasicDescription( > formatDescription ) > > let numSndChannels = asbd->mChannelsPerFrame // this fails to

dereference UnsafePointer

2015-07-20 Thread Jan E. Schotsman
Hello list, How can I dereference an UnsafePointer in Swift? For example let asbd = CMAudioFormatDescriptionGetStreamBasicDescription( formatDescription ) let numSndChannels = asbd->mChannelsPerFrame // this fails to compile, of course Do I need to write an accessor in a .c or .m file?

Re: OsX - HTTP resource load blocked

2015-07-20 Thread Uli Kusterer
On 19 Jul 2015, at 10:47, Marc Danguy wrote: > a strange one : Code Signature Invalid Do you maybe have a shell script build phase that modifies the bundle after it has been signed ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Drag highlight problems

2015-07-20 Thread Uli Kusterer
On 20 Jul 2015, at 04:36, John Brownie wrote: > Everything works correctly except for the drag highlight. Sometimes, and I > haven't been able to work out what the sequence is, the drag highlight will > be left on after the drop happens. The problem seems to be some sort of race > condition, bu