WebBackForwardList capacity bug?
WebBackForwardList capacity bug?
- Subject: WebBackForwardList capacity bug?
- From: Suhas Joshi <email@hidden>
- Date: Mon, 3 Oct 2005 18:55:14 -0700
- Thread-topic: WebBackForwardList capacity bug?
I'm trying to set the capacity of a backForwardList for a WebView and it
appears that while I can increase the capacity of the list I can't set
it to any value lower than the current value. As an example, the
following code throws an exception at the last statement:
[[mainWebView backForwardList] setCapacity:101];
[[mainWebView backForwardList] setCapacity:101];
[[mainWebView backForwardList] setCapacity:111];
[[mainWebView backForwardList] setCapacity:121];
[[mainWebView backForwardList] setCapacity:131];
[[mainWebView backForwardList] setCapacity:121];
Here's the call stack I'm seeing:
#0 0x9289dd68 in -[NSException raise]
#1 0x9289dbbc in +[NSException raise:format:]
#2 0x92860394 in -[NSPlaceholderArray initWithObjects:count:]
#3 0x92860220 in +[NSArray arrayWithObjects:count:]
#4 0x928a7038 in -[NSArray subarrayWithRange:]
#5 0x95918a24 in -[WebBackForwardList setCapacity:]
Is this a bug or am I not using this correctly? I'm developing on 10.4
and this happens whether I develop against the 10.3.9 or 10.4u SDKs.
Thanks,
Suhas Joshi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden