Re: Just Shoot Me! - was [Q] Calling isEmpty on an NSRange?
Re: Just Shoot Me! - was [Q] Calling isEmpty on an NSRange?
- Subject: Re: Just Shoot Me! - was [Q] Calling isEmpty on an NSRange?
- From: Ando Sonenblick <email@hidden>
- Date: Mon, 23 Sep 2002 17:33:29 -0700
Like a dork I was somehow looking at the dang java documentation for
ranges!!!!! And they of course encapsulate ranges in classes...
Argh! I wish the browser had a magic pref to suppress that dang java
stuff... Java is great, just not when you don't want it! :)
Thx,
Ando
>
OK... So a range seems to be a mere struct and not a class instantiation.
>
>
Cool: I know I can get its length, location, etc via:
>
>
{
>
NSRange range;
>
>
range = [editor selectedRange];
>
return range.length;
>
}
>
>
But I've tried every which way to call isEmpty (and the other "actions")
>
with a range, but always get compile errors...
>
>
Can anyone elucidate?
>
>
Thanks,
>
Ando
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.