Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
> On 03 Jun 2015, at 19:54, Alex Zavatone wrote: > > > On Jun 3, 2015, at 2:30 PM, Mark Wright wrote: > >> The only potential problem is ivars that don’t have the leading underscore. > > My project has 377 of them. All named the same as the property, if there is

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
> On 03 Jun 2015, at 18:59, Uli Kusterer wrote: > > On 03 Jun 2015, at 19:09, Alex Zavatone wrote: >> On Jun 3, 2015, at 12:59 PM, Uli Kusterer wrote: >> >>> So you're not supposed to use the underscore convention even for your >>> private ivars, as Apple could add secret stuff to NSObject or

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
> On 03 Jun 2015, at 17:08, Alex Zavatone wrote: > > > One point I haven't looked at is, "if @properties are declared within the > @implementation or the class extension, are they private? And if so, > shouldn't they be preceded with an underscore and in that case, what does > that make the

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
of moving ivars out of the class @interface and (if still needed) into the @implementation or class extension. There’s a clang warning that can be enabled to help you if desired: -Wobjc-interface-ivars > > Le 3 juin 2015 à 17:15, Mark Wright a écrit : > >> Sorry, yes, I misr

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
ossible to use a class extension to add custom instance >>> variables. These are declared inside braces in the class extension >>> interface." >>> >>> So, I don't know how you see that it goes in the @implementation block >>> since

Re: Understanding the "declaration of instance variables in the interface is deprecated" warning.

2015-06-03 Thread Mark Wright
That’s a ‘Class Extension’. Furthermore, it’s under the title "Class Extensions Extend the Internal Implementation”. It also mentions that it goes in the @implementation block… > On 03 Jun 2015, at 15:11, Alex Zavatone wrote: > > Apple's Programming with Objective-C reference document © 2

Re: Getting at NSTextFinder from text view

2015-04-14 Thread Mark Wright
I’m afraid I may not be too helpful here because in my case I’m not using an NSTextView, rather mine is a custom view that displays text in various ‘cells’ so I had to implement the full textFinderClient protocol and build a corpus of searchable text for it to query against. > On 14 Apr 2015, a

Re: SKIndexAddDocument crashing

2013-11-08 Thread Mark Wright
FWIW it crashes on mine too (not too surprising, same Xcode and OS). It doesn’t crash if you replace the crashing line with: SKIndexAddDocumentWithText(searchIndexFile, doc, NULL, false); I don’t know if that’s any use to you (never used the framework). I think it’s failing because it’s not

Re: NSTextView without word wrap

2013-10-16 Thread Mark Wright
Shouldn't that be: - (BOOL) wrapsLines { return ![self isHorizontallyResizable]; } Otherwise if you set it to YES the getter will return NO because of the [self setHorizontallyResizable: !wraps] line in the setter? On 16 Oct 2013, at 06:55, Jens Alfke wrote: > > On Oct 12, 2013, at 2:4

NSDraggingInfo protocol, -slideDraggedImageTo: hair-pulling woes

2013-07-24 Thread Mark Wright
Hi all, Has anyone, anywhere, ever, gotten -slideDraggedImageTo: to actually work as described in the docs or otherwise do anything at all? The docs lay it out in black and white: Slides the image to a specified location. - (void)slideDraggedImageTo:(NSPoint)aPoint Parameters aPoint A p

Re: Getting NSScrollView to ignore scrolling

2011-02-21 Thread Mark Wright
However, as far as I recall, the scroll view is responsible for tiling and drawing the table column headers (and the little corner view). So, it's only a workable solution if you don't want headers over your table columns... On 21 Feb 2011, at 04:10:24, Scott Anguish wrote: although you

Re: NSOutlineView + NSButtonCell weird bug

2011-02-10 Thread Mark Wright
Ah HA! This problem has bugged me for ages and I could never find it. I too worked around it with re-saves or forcing nib recompilation whenever one of them worked. I always blamed some obscure corruption in IB but since I'm stuck on 10.5 I assumed it was just something to live with. I

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
On 16 Nov 2010, at 11:27:22, Remco Poelstra wrote: Op 16 nov 2010, om 12:18 heeft Mark Wright het volgende geschreven: Your AudionetQueueDelegate protocol is probably not inheriting from (the protocol) so it warns that valueForKeyPath: is not found. It'll also probably complain

Re: valueForKeyPath: not found in protocol

2010-11-16 Thread Mark Wright
Your AudionetQueueDelegate protocol is probably not inheriting from (the protocol) so it warns that valueForKeyPath: is not found. It'll also probably complain about methods like respondsToSelector: which is also part of the NSObject protocol. You need to write your protocol declaration i