BluesZhang / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

"warning: no'-URLString" method found" #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. running this code on iPhone simulator is throwing a warning of "warning:
no'-URLString" method found"

// fetch or clear the thumbnail for this specified album
- (void)updateImageForAlbum:(GDataEntryPhotoAlbum *)album {

  // if there's a thumbnail and it's different from the one being shown,
  // fetch it now
  if (!album) {
    // clear the image
    [mAlbumImageView setImage:nil];
    [self setAlbumImageURLString:nil];

  } else {    
    // if the new thumbnail URL string is different from the previous one,
    // save the new one, clear the image and fetch the new image

    NSArray *thumbnails = [[album mediaGroup] mediaThumbnails];
    if ([thumbnails count] > 0) {

      NSString *imageURLString = [[thumbnails objectAtIndex:0] URLString];
      if (!imageURLString || ![mAlbumImageURLString isEqual:imageURLString]) {

        [self setAlbumImageURLString:imageURLString];
        [mAlbumImageView setImage:nil];

        if (imageURLString) {
          [self fetchURLString:imageURLString forImageView:mAlbumImageView];
        }
      } 
    }
  }
}

What is the expected output?
no warning

What do you see instead?
getting the warning

What version of the product are you using? On what operating system?
iPhone 3.0 OS

Original issue reported on code.google.com by jwang...@gmail.com on 19 Jun 2009 at 8:51

GoogleCodeExporter commented 9 years ago
nevermind. missed #import some .h files. please cancel.

Original comment by jwang...@gmail.com on 19 Jun 2009 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by gregrobbins on 20 Jun 2009 at 1:07