Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 27 Dec 2013, at 04:08, Peter Teeson wrote: > On 2013-12-26, at 7:01 PM, Uli Kusterer wrote: >> On 26 Dec 2013, at 18:49, Peter Teeson wrote: >>> _Cancel = [[NSButton alloc]init]; >>> [_Cancel setFrame:theButtonFrame]; >>> [_Cancel setNeedsDisplay:YES]; >> >> Several issues here: >>

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 14:39, Uli Kusterer wrote: > The only things in 10.0 that used the tint were Rounded (highlight/default > buttons) and Circle bezel buttons (only to highlight), menu selections, tab > controls, popup buttons, segmented controls, progress bars and scroll bars. > Also the apple

Ugly Inspector Bar in TextView

2013-12-28 Thread Gerriet M. Denkmann
I created a new project (10.9.1, Xcode 5.0.2) not document based. Put a TextView into the window and made constraints to the 4 sides = Default. Clicked (selected) "Inspector Bar" for the TextView. Build and Run. Window shows, TextView has Inspector Bar, but the right half is obscured by some stra

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 14:39, Uli Kusterer wrote: >> To repeat… I expected the above code to produce a button which when pressed >> displays the Blue Aqua tint. It doesn't! Why not? >> Why does it show the Aqua tint if I set up the exact same button using IB >> and let it be instantiated from the ni

Re: Should copy + paste change characters?

2013-12-28 Thread Uli Kusterer
On 27 Dec 2013, at 11:22, Gerriet M. Denkmann wrote: > > On 27 Dec 2013, at 15:23, Ken Thomases wrote: > >> On Dec 27, 2013, at 2:01 AM, Gerriet M. Denkmann wrote: >> >>> When I have a rich text (with the font set to Heiti SC Light), which >>> contains these three lines: >>> >>> L'œuf de v

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Uli Kusterer
On 27 Dec 2013, at 13:52, Trygve Inda wrote: > I have a document with a SourceView on the left side (like iTunes). Some > main menu commands pertain to actions in the Source View. This works fine if > the SourceView is the active view but my window has other views held in a > SplitView. > > If

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Kyle Sluder
On Sat, Dec 28, 2013, at 06:05 AM, Uli Kusterer wrote: > Are you perhaps trying to implement “sticky” buttons? I.e. buttons that > toggle between on and off when clicked? These haven’t highlighted in > blue for a long time No, they still highlight in blue (or gray if your control tint is Graphi

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Trygve Inda
> > On 27 Dec 2013, at 13:52, Trygve Inda wrote: > >> I have a document with a SourceView on the left side (like iTunes). Some >> main menu commands pertain to actions in the Source View. This works fine if >> the SourceView is the active view but my window has other views held in a >> SplitView

CFMessagePortCreateLocal() fails occasionally in 10.9?

2013-12-28 Thread Jerry Krinock
Last week I received a second error report from a Mavericks user, via my app’s built-in error reporter, indicating that CFMessagePortCreateLocal() returned NULL. I have no record of this happening prior to Mavericks. Both users report that the operations succeeded when they retried it. Has an

Re: CFMessagePortCreateLocal() fails occasionally in 10.9?

2013-12-28 Thread Kyle Sluder
On Sat, Dec 28, 2013, at 11:24 AM, Jerry Krinock wrote: > Has anyone else noticed this, or have any knowledge of why it might be > occurring? One of the great things about Core Foundation is that it is open source: Looks like t

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Peter Teeson
On 2013-12-28, at 11:43 AM, Kyle Sluder wrote: > You can try out my ButtonTester tool to play with these flags in real > time: Wow you are definitely amazing. I had just started working on a project to do just that sort of thing. You did it first (and

Re: NSURLSession + Bonjour to do peer-to-peer file transfers?

2013-12-28 Thread Eric Wing
On 12/26/13, Jens Alfke wrote: > > On Dec 25, 2013, at 7:26 AM, Eric Wing wrote: > >> I can publish my iPhone via Bonjour and make my Mac discover and >> resolve the address. I try to create a NSURLSessionDownloadTask on my >> Mac and a NSURLSessionUploadTask on my iPhone. > > That won’t work, be

Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
I’ve been prototyping an internal tool that receives and displays lots of text data. I wanted to display this kind of like how Terminal.app continuously appends text and keeps scrolling to the bottom as more data is added. I used a stock NSTextView and keep appending to the backing NSTextStorage.

Re: NSTextTable with only certain text selectabled

2013-12-28 Thread Fritz Anderson
On 21 Nov 2013, at 10:55 AM, Andrew Arrow wrote: > How do I make a drag select on a NSTextView with an NSAttributedString > that contains a 2 column NSTextTable, only select the text in the 1st > column? > > You can see a video of the mac app skype doing this here: > > https://dl.dropboxusercon

Re: CFMessagePortCreateLocal() fails occasionally in 10.9?

2013-12-28 Thread Jerry Krinock
On 2013 Dec 28, at 12:14, Kyle Sluder wrote: > Can you ask the user for any proximate console logs? Very good, Kyle! Yes, indeed my app has a built-in "Trouble Zipper” feature and one of the things it does is to filter and zip console logs. I just sent an email to the user requesting that h

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Jerry Krinock
On 2013 Dec 28, at 15:14, Eric Wing wrote: > 1) I figured out that the bottleneck was in scrollRangeToVisible call. You could see if you have better luck with -[NSView scrollPoint:]. > 2) -[NSBigMutableString replaceCharactersInRange:withString:]: nil argument Well, there’s the obvious answer

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 18:48, Trygve Inda wrote: >> >> On 27 Dec 2013, at 13:52, Trygve Inda wrote: >> >>> I have a document with a SourceView on the left side (like iTunes). Some >>> main menu commands pertain to actions in the Source View. This works fine if >>> the SourceView is the active vie

Re: UISlider with custom images & narrow thumb

2013-12-28 Thread Fritz Anderson
On 21 Nov 2013, at 8:36 AM, John Spicer wrote: > I'm trying to get a UISlider working with custom images. I've gone through > the docs, and I know how to set the images. > The question (and the problem) is a little different. > > Our design department has given us a thumb image that is wide at

Re: DockTile sample code, Principal class is "DockTile" ?

2013-12-28 Thread Fritz Anderson
On 28 Nov 2013, at 5:13 PM, Eden wrote: > In Apple's "DockTile" sample code there is a an app and a dock tile > plug-in. > > In the DockTilePlugIn-Info.plist, the "Principal class" is valued as > "DockTile", but there is no such class-- the class in the source code is > "DockTileP

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Trygve Inda
>> Can you give an example of how you do that? I guess I'd want it right after >> my document controller. Do I need to walk the list looking for my document >> controller? >> >> Or just do: >> >> [[document windowController] setNextResponder:sourceViewController] >> >> Trygve > > Well, you’ll

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Quincey Morris
On Dec 28, 2013, at 20:47 , Trygve Inda wrote: > That would require 10.7 and I am not sure if I am ready to stop supporting > 10.6 yet. What’s wrong with the even more straightforward approach of implementing each action method in an object that’s going to be in the responder chain at the corr

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
On 12/28/13, Jerry Krinock wrote: > > On 2013 Dec 28, at 15:14, Eric Wing wrote: > >> 1) I figured out that the bottleneck was in scrollRangeToVisible call. > > You could see if you have better luck with -[NSView scrollPoint:]. > >> 2) -[NSBigMutableString replaceCharactersInRange:withString:]: n

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Jens Alfke
On Dec 28, 2013, at 10:11 PM, Eric Wing wrote: > But I did notice a new problem. At around 800,000 lines, the > NSTextView stops displaying new appended text. The Cocoa text system really doesn’t scale well to such huge amounts of text. The only apps I know of that can handle really large amou