Re: Find bar in a text view

2013-08-15 Thread Shane Stanley
On 16/08/2013, at 2:27 AM, Kevin Perry  wrote:

> Sounds like a bug that you should report via Bug Reporter.

Thanks, I'd done that (#14745599). It also happens if a text view is on a tab 
view and you change tabs, except it then also moves rather dramatically (in my 
case partly outside the window area).
> 
> But as a workaround, you should be able to call -[NSTextView 
> setIncrementalSearchingEnabled:NO] when the subview gets collapsed (then 
> obviously set it back to YES when the text view is uncollapsed, though you 
> will lose search results in doing so).

That's a thought, thanks.

-- 
Shane Stanley 
'AppleScriptObjC Explored' 


___

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/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Find bar in a text view

2013-08-15 Thread Kevin Perry
Sounds like a bug that you should report via Bug Reporter.

But as a workaround, you should be able to call -[NSTextView 
setIncrementalSearchingEnabled:NO] when the subview gets collapsed (then 
obviously set it back to YES when the text view is uncollapsed, though you will 
lose search results in doing so).

-KP

On Aug 15, 2013, at 4:59 AM, Shane Stanley  wrote:

> I have text views in a split view, and I use find bars with them. I'd like to 
> implement incremental searching. When I turn it on in IB  it works, except 
> that if I collapse a subview showing the grey overlay, the overlay remains on 
> screen. As a workaround, the documentation says I can turn the overlay off I 
> should set the incrementalSearchingShouldDimContentView property to NO.
> 
> The problem is that the find bar is all pre-implemented by NSTextView, and I 
> can't see how to address the NSTextFinder instance. Any suggestions, or do I 
> need to implement my own NSTextFinder instance?
> 
> -- 
> Shane Stanley 
> 'AppleScriptObjC Explored' 
> 
> 
> ___
> 
> 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/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/kperry%40apple.com
> 
> This email sent to kpe...@apple.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(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Find bar in a text view

2013-08-15 Thread Shane Stanley
I have text views in a split view, and I use find bars with them. I'd like to 
implement incremental searching. When I turn it on in IB  it works, except that 
if I collapse a subview showing the grey overlay, the overlay remains on 
screen. As a workaround, the documentation says I can turn the overlay off I 
should set the incrementalSearchingShouldDimContentView property to NO.

The problem is that the find bar is all pre-implemented by NSTextView, and I 
can't see how to address the NSTextFinder instance. Any suggestions, or do I 
need to implement my own NSTextFinder instance?

-- 
Shane Stanley 
'AppleScriptObjC Explored' 


___

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/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com