Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-30-2011, 11:41 AM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 19
s7162 is on a distinguished road
Default what does this error message mean? ivar error?

I get this error message but i have no idea how to fix it,

Code:
Existing ivar 'delegate' for unsafe_retained property 'delegate' must be __unsafe_retained
what does this mean? I used the same code before and it works, but now this comes up, its quite confusing.
s7162 is offline   Reply With Quote
Old 06-30-2011, 11:42 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

How about actually posting the code?
baja_yu is offline   Reply With Quote
Old 06-30-2011, 12:36 PM   #3 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 19
s7162 is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
How about actually posting the code?
its from the photo picker app from apple,

.h file -
Code:
@protocol OverlayViewControllerDelegate;

@interface OverlayViewController : UIViewController <UINavigationControllerDelegate, UIImagePickerControllerDelegate>
{
    id <OverlayViewControllerDelegate> delegate;
    
    UIImagePickerController *imagePickerController;
    
@private
    UIBarButtonItem *takePictureButton;
    UIBarButtonItem *startStopButton;
    UIBarButtonItem *timedButton;
    UIBarButtonItem *cancelButton;
    
    NSTimer *tickTimer;
    NSTimer *cameraTimer;
    
    SystemSoundID tickSound;
}    

@property (nonatomic, assign) id <OverlayViewControllerDelegate> delegate;
.m file,

Code:
#import "OverlayViewController.h"

enum
{
	kOneShot,       // user wants to take a delayed single shot
	kRepeatingShot  // user wants to take repeating shots
};

@implementation OverlayViewController

@synthesize delegate, takePictureButton, startStopButton, cancelButton, timedButton, tickTimer, cameraTimer, imagePickerController;
s7162 is offline   Reply With Quote
Old 06-30-2011, 12:55 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

The sample works fine for me. Are you using 4.3 SDK, and did you make any modifications to the code?
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 341
9 members and 332 guests
apatsufas, chemistry, lendo, leostc, Leslie80, lzwasyc, MarkC, pbart, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0