Re: How to override properties

2015-10-01 Thread Graham Cox
> On 2 Oct 2015, at 3:47 pm, Gerriet M. Denkmann wrote: > > So I added @dynamic to the subclass, and all seems to be ok. Maybe. What happens if you pass a ‘someDataClass’ instance to -setStuff:, then return it as type subDataClass? It’s not a subDataClass, but your client might well believe

Re: How to override properties

2015-10-01 Thread Gerriet M. Denkmann
> On 2 Oct 2015, at 12:40, Quincey Morris > wrote: > > On Oct 1, 2015, at 22:18 , Graham Cox wrote: >> >> It’s not really about making the compiler happy, it’s about making your code >> clear and bug-free. > >> The compiler is telling you your design is probably faulty, but the correct >>

Re: How to override properties

2015-10-01 Thread Quincey Morris
On Oct 1, 2015, at 22:18 , Graham Cox wrote: > > It’s not really about making the compiler happy, it’s about making your code > clear and bug-free. > The compiler is telling you your design is probably faulty, but the correct > solution depends on your true intentions. What are they? You’ve sl

Re: How to override properties

2015-10-01 Thread Graham Cox
> On 2 Oct 2015, at 2:28 pm, Gerriet M. Denkmann wrote: > > don’t think that I want ’stuff’ to be implemented by its superclass. Are you sure? The only thing the subclass has changed about the property is its type, which is in itself a subclass of the original type, so it should be possible

Re: How to override properties

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 9:28 PM, Gerriet M. Denkmann wrote: > > I don’t think that I want ’stuff’ to be implemented by its superclass. Rather > I want it to be overridden. So I am not sure, whether @dynamic is the right > thing to do. Implement -stuff and -setStuff: in the subclass, and implemen

Re: How to override properties

2015-10-01 Thread Charles Srstka
> On Oct 1, 2015, at 11:28 PM, Gerriet M. Denkmann wrote: > > I inherited some code with: > > @interface BaseThing : NSObject > > @property (nonatomic) SomeDataClass *stuff; > > @end > > > @interface SubThing : BaseThing > > @property (nonatomic) SubDataClass* stuff;// SubDataClas

How to override properties

2015-10-01 Thread Gerriet M. Denkmann
I inherited some code with: @interface BaseThing : NSObject @property (nonatomic) SomeDataClass *stuff; @end @interface SubThing : BaseThing @property (nonatomic) SubDataClass* stuff; // SubDataClass is a subclass of SomeDataClass @end @implementation SubThing // nothing about

Re: NSTableView - Detecting when user has finished scrolling

2015-10-01 Thread Graham Cox
> On 1 Oct 2015, at 5:04 pm, Peter Hudson wrote: > > Legacy code I’m afraid Graham - written some years ago. > I simply want it to look better for now while we're getting on with the > re-write. > The new version indeed uses view-based table views - and works a lot better. OK, so you’re impl

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Richard Charles
> On Oct 1, 2015, at 10:38 AM, Greg Parker wrote: > > Sounds like the crash hit something that took down your login session but > wasn't bad enough to take down the entire machine. For example a WindowServer > crash will drop you back to the login window without a restart. Only kernel > panic

UIStackView Change Upon Device Orientation...

2015-10-01 Thread Peters, Brandon
I have an App that uses a UIStackView to contain an image view and a text view. For now, the arrangement has the image view on top of the text view. However, I would like, in the event that the iPad is in landscape, for the image view to appear on the left of the stack view and the text view on

AVMetadataItem key

2015-10-01 Thread Jan E. Schotsman
Sorry for this stupid question but I just don't know how to do this. I have an AVMetaDataItem with key = protocol? Int32(1851878757) as shown by the debugger How can can extract the value 1851878757 which is the four char code I need? Using Swift 2 TIA, Jan E

Contained UITableViewController doesn't animate (w/ CoreAnimation) frame change

2015-10-01 Thread Daniel Stenmark
I have a rather nested UITableViewController whose AutoLayout height change I’m trying to animate using CoreAnimation. (The final product will have a custom animation timing function, so the UIView animation methods aren’t an option here.) However, when I update the height constraint to a lowe

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Richard Charles
> On Oct 1, 2015, at 10:20 AM, Dave wrote: > > I’m running on a Mac Pro 3.1. > > I’ve installed 10.11 and XCode 7.0.1, now every now and then for no apparent > reason while in XCode, suddenly all 4 of my monitors go black and the machine > hangs for maybe 30 seconds then suddenly I get presen

Re: How to install 10.11 ?

2015-10-01 Thread Quincey Morris
On Oct 1, 2015, at 02:19 , Roland King wrote: > > i’m sure it will work if your volume names aren’t rather unusual, it’s been > tested for a while. “เม่น” looks like 3 characters, well it is 3 grapheme > clusters but it’s 4 code points, one of which combines with the next one to > form the sin

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Dave
> On 1 Oct 2015, at 17:38, Greg Parker wrote: >> Annoyingly when I log back in it restarts all the App’s that were running >> before the crash to Log In window. I seem to remember there was a System >> Default to switch this off, but I can’t seem to find it again now - was I >> imaging things?

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Dave
> On 1 Oct 2015, at 17:35, Jens Alfke wrote: > > >> On Oct 1, 2015, at 9:20 AM, Dave > > wrote: >> >> I’ve installed 10.11 and XCode 7.0.1, now every now and then for no apparent >> reason while in XCode, suddenly all 4 of my monitors go black and the >> machi

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Greg Parker
> On Oct 1, 2015, at 9:20 AM, Dave wrote: > > Hi All, > > I’m running on a Mac Pro 3.1. > > I’ve installed 10.11 and XCode 7.0.1, now every now and then for no apparent > reason while in XCode, suddenly all 4 of my monitors go black and the machine > hangs for maybe 30 seconds then suddenly

Re: Mac OSX 10.11 and XCode

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 9:20 AM, Dave wrote: > > I’ve installed 10.11 and XCode 7.0.1, now every now and then for no apparent > reason while in XCode, suddenly all 4 of my monitors go black and the machine > hangs for maybe 30 seconds then suddenly I get presented with the Log In > Screen. Is th

Mac OSX 10.11 and XCode

2015-10-01 Thread Dave
Hi All, I’m running on a Mac Pro 3.1. I’ve installed 10.11 and XCode 7.0.1, now every now and then for no apparent reason while in XCode, suddenly all 4 of my monitors go black and the machine hangs for maybe 30 seconds then suddenly I get presented with the Log In Screen. Is this new behaviou

Re: questions on WebView for Mac apps

2015-10-01 Thread Dave
> On 1 Oct 2015, at 16:15, Alex Hall wrote: > > >> On Oct 1, 2015, at 06:49, Marek Hrušovský wrote: >> >> The only thing you have to do is to call a method and add it as subview in >> your code >> - (instancetype)initWithFrame:(CGRect)frame >> configuration:(WKWebViewConfiguration *)configu

Re: Drawing many different strings quickly

2015-10-01 Thread Jens Alfke
> On Oct 1, 2015, at 12:02 AM, Ben wrote: > > Using NSString's drawInRect:withAttributes: wants a Swift dictionary of > attributes. Instruments showed a lot of time spend accessing the elements of > this dictionary and converting back to Objective-C land. > Converting the string to be drawn t

Re: questions on WebView for Mac apps

2015-10-01 Thread Alex Hall
> On Oct 1, 2015, at 06:49, Marek Hrušovský wrote: > > The only thing you have to do is to call a method and add it as subview in > your code > - (instancetype)initWithFrame:(CGRect)frame > configuration:(WKWebViewConfiguration *)configuration > NS_DESIGNATED_INITIALIZER; > > It's max 3 minu

Re: How to install 10.11 ?

2015-10-01 Thread Alex Zavatone
If it's any consolation, I couldn't update my Retina MBP 15 either initially. When the installer was about to restart "An error occurred. Please try again." i had to reboot and install the OS again holding down some command key sequence. Only after a 1 hour install and putting a fresh install

Re: How to install 10.11 ?

2015-10-01 Thread Dave
> i’m sure it will work if your volume names aren’t rather unusual, it’s been > tested for a while. “เม่น” looks like 3 characters, well it is 3 grapheme > clusters but it’s 4 code points, one of which combines with the next one to > form the single character. Given the one-character-off-the-en

Re: questions on WebView for Mac apps

2015-10-01 Thread Marek Hrušovský
The only thing you have to do is to call a method and add it as subview in your code - (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration NS_DESIGNATED_INITIALIZER; It's max 3 minutes of work. On Thu, Oct 1, 2015 at 3:00 AM, Alex Hall wrote: > > > O

Re: How to install 10.11 ?

2015-10-01 Thread dangerwillrobinsondanger
Anyway none of this is about Cocoa (barring practice stack trace reading) this belongs elsewhere. Sent from my iPhone > On Oct 1, 2015, at 6:19 PM, Roland King wrote: > > >> On 1 Oct 2015, at 17:10, Dave wrote: >> >> >>> On 1 Oct 2015, at 09:59, Roland King wrote: >>> >>> Well there you

Re: NSColorPanel and close box

2015-10-01 Thread Matthias Schmidt
> Am 30.09.2015 um 17:09 schrieb Matthias Schmidt : > > >> Am 30.09.2015 um 16:11 schrieb Jens Alfke : >> >> >> >>> On Sep 30, 2015, at 12:04 AM, Matthias Schmidt wrote: >>> >>> while ([NSColorPanel sharedColorPanelExists]) { >>> PA_Yield(); >>> } >> >> Yikes! That looks very suspici

Re: How to install 10.11 ?

2015-10-01 Thread Roland King
> On 1 Oct 2015, at 17:10, Dave wrote: > > >> On 1 Oct 2015, at 09:59, Roland King wrote: >> >> Well there you go - looks like none of the beta testers had a volume named >> with a combining mark in it. I suspect you are SOL unless you rename your >> volume something a little less Thai. >

Re: How to install 10.11 ?

2015-10-01 Thread Dave
> On 1 Oct 2015, at 09:59, Roland King wrote: > > Well there you go - looks like none of the beta testers had a volume named > with a combining mark in it. I suspect you are SOL unless you rename your > volume something a little less Thai. What’s a “combining mark” ? Not sure what you mean a

Re: How to install 10.11 ?

2015-10-01 Thread Roland King
Well there you go - looks like none of the beta testers had a volume named with a combining mark in it. I suspect you are SOL unless you rename your volume something a little less Thai. > On 1 Oct 2015, at 16:14, Gerriet M. Denkmann wrote: > > Just tried 3 times to install 10.11. Always the

Re: How to install 10.11 ?

2015-10-01 Thread Rick Mann
Sounds silly, but repair permissions via Disk Utility? > On Oct 1, 2015, at 01:14 , Gerriet M. Denkmann wrote: > > Just tried 3 times to install 10.11. Always the same result: > > First there is lots of talk like: > … Language Chooser[441:6816] TSplicedFont failed creating descriptor for: > […]

How to install 10.11 ?

2015-10-01 Thread Gerriet M. Denkmann
Just tried 3 times to install 10.11. Always the same result: First there is lots of talk like: … Language Chooser[441:6816] TSplicedFont failed creating descriptor for: […] ".LastResort” is used instead. Then, at about line 18 000: Oct 1 00:10:55 MacBook-Pro OSInstaller[458]: Path enumeration

Re: NSTableView - Detecting when user has finished scrolling

2015-10-01 Thread Peter Hudson
Legacy code I’m afraid Graham - written some years ago. I simply want it to look better for now while we're getting on with the re-write. The new version indeed uses view-based table views - and works a lot better. Peter > On 1 Oct 2015, at 01:11, Graham Cox wrote: > > >> On 30 Sep 2015,

Re: Drawing many different strings quickly

2015-10-01 Thread Ben
> On 28 Sep 2015, at 18:42, Alex Kac wrote: > > We had the same question and I asked it at WWDC. A few things I was told: > > 1. El Capitan improves string drawing performance tremendously. That may > solve your problem. > 2. They recommended in our case actually using NSTextFields for each s