Re: keyboard focus handling in custom controls

2018-09-10 Thread iain
> On 10 Sep 2018, at 2:19 pm, Alastair Houghton > wrote: > > On 10 Sep 2018, at 13:21, iain <mailto:i...@falsevictories.com>> wrote: >> >> I have an application, which has 3 controls >> >> [button] [custom view] [button] >> >> I’ve

keyboard focus handling in custom controls

2018-09-10 Thread iain
m view Currently, it always has to go to the area that was focused when the view lost focus. Is there a way to do what I’m wanting? thanks iain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Adding Constraints in Code

2015-09-14 Thread Iain Holmes
aid out horizontally. You should just use 0 for options. However: StackView is the parent of DetailView so you should be using | as the superview, so simply doing something like this should work. myConstraintsArray = [NSLayoutConstraint constraintsWithVisualFormat:@“H:|[DetailView]|" options:0 metrics:nil v

Re: Adding Constraints in Code

2015-09-14 Thread Iain Holmes
> On 14 Sep 2015, at 11:58 am, Iain Holmes wrote: > >> >> On 14 Sep 2015, at 10:35 am, Dave wrote: >> >> Hi All, >> >> I’m trying to add Constraints to a View in order to have it stretch to the >> left and right edges of the superview.

Re: Any way to force a window under the menu bar?

2015-01-26 Thread Iain Holmes
mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/index.html#//apple_ref/c/tdef/CGWindowLevelKey> for the other values available to you) iain > On 26 Jan 2015, at 04:39, Trygve Inda wrote: > > I have created a borderless NSWindow. Is there a way to force it to appear > und

Re: QR-code scanning for Mac OS?

2014-12-03 Thread Iain Holmes
Someone has ported the ZXing code to ObjC https://github.com/TheLevelUp/ZXingObjC <https://github.com/TheLevelUp/ZXingObjC> iain > On 3 Dec 2014, at 18:31, Jens Alfke wrote: > > I'm getting interested in using QR codes to pair devices or quickly share > information (i

Re: App store rejection, inappropriate sandboxing

2014-10-29 Thread iain
I had the same issue: it turned out that Xcode's automatic provisioning profile choice was not as smart as I'd hoped and had picked a provisioning profile that had a maps entitlement. Setting the correct profile fixed it. I'd check there first before a DTS Iain > On 29 Oc

Re: WWDC App

2014-10-19 Thread iain
It's started crashing since iOS8 but a trick is to long press the video you want and select Watch Video from the popup then it'll play ok Iain > On 19 Oct 2014, at 6:40 pm, Gordon Apple wrote: > > What has happened to the WWDC app? I even deleted it from my iPad and >

Re: PushKit dyld errors on 64bit

2014-10-09 Thread Iain Holmes
Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1140.1.0) Is this something I should open a radar about? iain signature.asc Description: Message signed with OpenPGP using GPGMail ___ Cocoa-dev mailing li

PushKit dyld errors on 64bit

2014-10-09 Thread Iain Holmes
/PushKit.framework/PushKit: mach-o, but wrong architecture Dyld Version: 353.5 Does anyone know what might be wrong with it and possible fixes? thanks, iain signature.asc Description: Message signed with OpenPGP using GPGMail ___ Cocoa-dev mailing list (Cocoa-dev

Re: ambiguous layout for documentView in NSScrollView

2013-03-17 Thread iain
On Sun, Mar 17, 2013 at 1:50 AM, Kyle Sluder wrote: > On Sat, Mar 16, 2013, at 06:37 PM, iain wrote: > > > > > > On 17 Mar 2013, at 12:38 AM, Chuck Soper > > > Each subview has an "NSLayoutConstraint * widthConstraint;" ivar that > > > holds

Re: ambiguous layout for documentView in NSScrollView

2013-03-16 Thread iain
is the==120 one but I don't know if there is a guarantee that it will always break that one. I'm not sure why you would have to set both the constraints, setting the absolute width seems like something that should be done via the intrinsic size. Iain

Re: ARC Release too soon

2013-03-16 Thread iain
t fires them > off If you want the window controllers to hang around after the function finished you need to assign them to a strong variable otherwise they will be released. Iain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: File Path String From Save Panel

2013-03-04 Thread iain
wrong ? You could use the -[NSURL path] method? It returns "The path of the URL, unescaped with the stringByReplacingPercentEscapesUsingEncoding: method." iain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: NSScrollView: should I use autolayout or not?

2013-02-21 Thread iain
his is assuming your view has overriden -(NSSize)intrinsicContentSize to return NSViewNoIntrinsicMetric for the width Hope that helps slightly. I've been finding Autolayout pretty good once you get your head around it and taking all the hassle out of recalculating layout frames iain __

Re: Tracking visibleRect changes using Autolayout

2013-02-18 Thread iain
ight be 60,000,000 pixels wide. However, you did show me -viewWillDraw and it seems like a good place to check if my visibleRect: has changed size, invalidating the much smaller cached drawing that I have. thanks, iain ___ Cocoa-dev mailing list (Coc

Re: Tracking visibleRect changes using Autolayout

2013-02-17 Thread iain
On Mon, Feb 18, 2013 at 6:07 PM, Kyle Sluder wrote: > On Sun, Feb 17, 2013, at 05:12 PM, iain wrote: > > > > Does anyone have any hints of something I may have missed, or something > > I'm > > going about the wrong way? > > Unless there's something you

Tracking visibleRect changes using Autolayout

2013-02-17 Thread iain
o stop Autolayout from working. Does anyone have any hints of something I may have missed, or something I'm going about the wrong way? Thanks, iain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Visualised constraint colours

2012-12-30 Thread iain
;t want to assume blue == good, red == bad Iain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/U

Re: Drawing customized window

2012-10-31 Thread iain
ets it to a pattern color. That is it. > > When you use setBackgroundColor: on the window, is there a way to get the titlebar text to draw in a different colour? When you set the background to a dark colour, the titlebar text is still drawn dark with a light highlight so it looks quite bad. thanks

Re:Changing the drag image on the fly

2010-04-11 Thread Iain Delaney
If I understand your requirements correctly, this blog posting should be of help: http://joshua.nozzi.name/2009/10/jlndrageffectmanager/ It discusses changing the drag image based on the underlying view, and provides sample code for the effect. Iain Delaney iain.dela...@gmail.com

Re: NSSplitView Question

2008-08-04 Thread Iain Houston
The TwoManyControllers sample code does what you want I think mostly generated from declarative as far as I can see On 4 Aug 2008, at 06:41, Graham Cox wrote: This is not any thing to do with NSSplitView as such. You're asking "how to implement a master-detail interface". Try doing searchin

Re: Working with Paragraphs in Core Text

2008-07-08 Thread Iain Delaney
Sharp wrote: On Jul 8, 2008, at 3:23 PM, Iain Delaney wrote: I'm trying to format some text using the new Leopard Core Text API. Paragraphs, and the CTParagraphStyle object seem to have been passed over in the documentation, getting just a cursory mention. Has anyone else managed to get

Working with Paragraphs in Core Text

2008-07-08 Thread Iain Delaney
if some could help me out. -- Iain Delaney [EMAIL PROTECTED] www.lucernesys.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins