UIPickerView Caching Items
UIPickerView Caching Items
- Subject: UIPickerView Caching Items
- From: James Heggs <email@hidden>
- Date: Fri, 13 Mar 2009 00:17:45 +0000
- Importance: Normal
Hi all,
I am doing a bit of prototype testing and have coded a small iPhone app that browses Bonjour services.
On the interface I have currently just added a UIPickerView which dynamically at runtime gets items added to it as and when my NSNetServiceBrowser finds services.
When the browser finds a service it simple calls:
[services addObject:aNetService];
[aNetService resolveWithTimeout:5.0];
[uiPickerView reloadAllComponents];
And my UIPickerViewDelegate methods perform the following:
- ( NSString * )pickerView:(UIPickerView *)pickerView
titleForRow:(NSInteger)row
forComponent:(NSInteger)component
{
NSNetService* service = [[bonjourDiscoveryService services] objectAtIndex:row];
return [service name];
}
This is working fine but I have noticed something strange.
If I turn stop the bonjour service on an already displayed service the UIPickerView successfully removes it from the lists.
But, then if I change the service name and restart the Bonjour service the UIPickerView adds the service but with the old service name?
Does the iPhone have some form of caching objects??
Many thanks all,
Eggsy
_________________________________________________________________
Free photo editing software from Windows LiveĀ . Try it now!
http://clk.atdmt.com/UKM/go/134665240/direct/01/_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden