Re: Auto-Layout Strangeness

2014-07-31 Thread Dave
On 31 Jul 2014, at 00:28, Graham Cox wrote: > > On 31 Jul 2014, at 6:57 am, Dave wrote: > >> (void) drawRect:(CGRect) theRect >> { > > >> myRect = CGRectInset(theRect,0,0); > > > is the DIRTY rect of the view, not its bounds, so myRect is derived > from it. Framing and filling that isn'

Re: Auto layout and scroll views on OS X

2014-07-31 Thread Allison Newman
OK, I did eventually figure out my problem with Autolayout and scrollviews. It turns out that I wasn’t setting up my scrollview constraints correctly in the storyboard (which is another way of saying I hadn’t set *any* size constraints on the scrollview’s frame). So, I did eventually figure th

Re: Modal Panel from Modal Window

2014-07-31 Thread Uli Kusterer
On 25 Jul 2014, at 21:31, koko wrote: > Case 1: I display a modal widow which has a button that displays a modal > panel which s a custom control. > > Case 2: I use this same control in the main window of the app. In this case > the control responds immediately to mouse movements. > > In Case

Re: iOS 8 beta 4 messes with my TextView

2014-07-31 Thread Uli Kusterer
On 30 Jul 2014, at 04:55, Gerriet M. Denkmann wrote: > On 29 Jul 2014, at 22:06, Kyle Sluder wrote: > >> On Jul 29, 2014, at 1:58 AM, "Gerriet M. Denkmann" >> wrote: >>> >>> Master Detail app, works fine in 7.1.2. >>> The Detail View has a UITextView. >>> Whenever I get a Keyboard Notificatio

Re: Auto layout and scroll views on OS X

2014-07-31 Thread Dave
On 31 Jul 2014, at 11:52, Allison Newman wrote: > OK, I did eventually figure out my problem with Autolayout and scrollviews. > It turns out that I wasn’t setting up my scrollview constraints correctly in > the storyboard (which is another way of saying I hadn’t set *any* size > constraints

Re: start with OSX 5.1.1

2014-07-31 Thread Uli Kusterer
On 31 Jul 2014, at 05:56, Eden Smallwood wrote: > I'm not sure whether this counts as just a "point of order" or > something, but my "Project Format 3.2 compatible" project targets 10.6 just > fine in xcode 5.1.1, ( and xcode 433 and 402 ). To "install" the 10.6 SDK > into Xcode 5, I ju

Re: Auto-Layout Strangeness

2014-07-31 Thread Uli Kusterer
On 30 Jul 2014, at 19:18, Dave wrote: > The problem is that the drawRect method in “FrameRect” does not get called > and it’s background colour doesn’t get set either. When I first created this > view, I had Auto-Layout enabled and in this case the background colour is set > ok and the drawRect

Re: Auto-Layout Strangeness

2014-07-31 Thread Dave
Hi, But why would it work ok with auto layout on? And also, why is only the first subview affected? If someone is messing around with CALayer or whatever, then I don’t think it’s in my App, but in Cocoa-Touch and out of my control. To recap: If auto layout is on, the first subview of a View l

Re: ARC and NSObjectController bindings through file's owner

2014-07-31 Thread Sean McBride
On Wed, 30 Jul 2014 15:45:04 -0500, Ken Thomases said: >A zeroing weak property changes without emitting KVO change >notifications. Therefore, it's not KVO-compliant. Basically, weak >properties are incompatible with KVO and bindings. Ouch! Didn't realise that. That's pretty annoying, as weak

Re: ARC and NSObjectController bindings through file's owner

2014-07-31 Thread Jerry Krinock
On 2014 Jul 31, at 09:05, Sean McBride wrote: > One thing I just noticed is that NSWindowController's 'document' property is > not actually documented as KVO-compliant. Maybe that's my problem... but > I've been binding through it for over a decade now! That may well be the real problem, Sea

Re: ARC and NSObjectController bindings through file's owner

2014-07-31 Thread Quincey Morris
On Jul 31, 2014, at 09:05 , Sean McBride wrote: > Other than use of 'weak', how else might something be changed in a > non-KVO-compliant manner in ARC but not GC? Again, the error is only in ARC > and not GC. I’m not sure this is the most productive way to approach this. The detection of an

Re: How to constrain a UISlider in a UIToolbar?

2014-07-31 Thread David Duncan
> On Jul 30, 2014, at 9:00 PM, Gerriet M. Denkmann wrote: > > > On 31 Jul 2014, at 00:18, David Duncan wrote: > >>> That's the purpose of setting the auto-resizing mask to FlexibleWidth. At >>> least for title views, that causes UINavigationBar to send -sizeThatFits: >>> to the view. >> >>

Re: How to constrain a UISlider in a UIToolbar?

2014-07-31 Thread Kyle Sluder
On Jul 31, 2014, at 10:05 AM, David Duncan wrote: > > >> On Jul 30, 2014, at 9:00 PM, Gerriet M. Denkmann >> wrote: >> >> >> On 31 Jul 2014, at 00:18, David Duncan wrote: >> That's the purpose of setting the auto-resizing mask to FlexibleWidth. At least for title views, that cau

Re: How to constrain a UISlider in a UIToolbar?

2014-07-31 Thread David Duncan
> On Jul 31, 2014, at 10:24 AM, Kyle Sluder wrote: > > On Jul 31, 2014, at 10:05 AM, David Duncan wrote: >> >> >>> On Jul 30, 2014, at 9:00 PM, Gerriet M. Denkmann >>> wrote: >>> >>> >>> On 31 Jul 2014, at 00:18, David Duncan wrote: >>> > That's the purpose of setting the auto-resiz

Alternative to NSRunningApplication launchDate?

2014-07-31 Thread Sean McBride
Hi all, The docs for NSRunningApplication launchDate say "only available for applications that were launched by LaunchServices." And indeed if the app was launched by Xcode (for debugging) launchDate returns nil. Anyone know another way of finding an app's launch date? Some UNIX layer API? T

Re: 10.5 Load Fonts for use in webview

2014-07-31 Thread danchik
Seems that simply adding the Fonts into bundle with appropriate plist reference automatically made the fonts available for the app :) When exactly do they become available, do I need to call NSFontManager routines to make sure they are included from the bundle or just their existence is enough

Re: Alternative to NSRunningApplication launchDate?

2014-07-31 Thread Jonathan Mitchell
On 31 Jul 2014, at 20:46, Sean McBride wrote: > Hi all, > > The docs for NSRunningApplication launchDate say "only available for > applications that were launched by LaunchServices." > > And indeed if the app was launched by Xcode (for debugging) launchDate > returns nil. > > Anyone know an

Re: 10.5 Load Fonts for use in webview

2014-07-31 Thread Jens Alfke
> On Jul 31, 2014, at 12:48 PM, danchik wrote: > > Seems that simply adding the Fonts into bundle with appropriate plist > reference automatically made the fonts available for the app :) When exactly > do they become available, do I need to call NSFontManager routines to make > sure they are

Re: start with OSX 5.1.1

2014-07-31 Thread Clark Smith Cox III
> On Jul 30, 2014, at 20:56, Eden Smallwood > wrote: > >> >> Message: 9 >> Date: Wed, 30 Jul 2014 06:53:49 -0700 >> From: "Gary L. Wade" > > >> To: N!K mailto:pu56ucl...@alumni.purdue.edu>> >> Cc: "cocoa-dev@lists.apple.com

Trouble with services

2014-07-31 Thread Jon Baumgartner
My app has a service that gets invoked from the Finder. It works great, but I now have multiple versions of the app, and I can’t figure out how to change which one will open when the service is invoked. For example, I have one copy of my app in /Applications (the release one that’s on the app

Re: Trouble with services

2014-07-31 Thread Ken Thomases
On Jul 31, 2014, at 10:10 PM, Jon Baumgartner wrote: > My app has a service that gets invoked from the Finder. It works great, but I > now have multiple versions of the app, and I can’t figure out how to change > which one will open when the service is invoked. > > For example, I have one co