• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIPickerView Caching Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: How to use MySql, which api is for that
  • Next by Date: Re: NSWorkspaceWillPowerOffNotification from a daemon
  • Previous by thread: Re: How to use MySql, which api is for that
  • Next by thread: RE: UIPickerView Caching Items
  • Index(es):
    • Date
    • Thread