Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebBackForwardList capacity issue



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];

The Console log reads: -[NSPlaceholderArray initWithObjects:count:]:
attempt to insert nil

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.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.