Padin215
Padin215

Reputation: 7484

Removed object and created new object with same name, keeps referencing old object

Had a NSObject userInfo. I removed it (reference only, still have the .h/.m file on the HDD) in Xcode and I created a NSManagedObject userInfo.

Xcode still thinks I want the old userInfo object instead of the new one. How can I let Xcode know there is a new userInfo, is it stored in a cache somewhere?

EDIT:

When I right click the object and select Jump to Definition, it takes me to the old object, not the new object.

Upvotes: 0

Views: 61

Answers (2)

Marcio Romero Patrnogic
Marcio Romero Patrnogic

Reputation: 1156

userInfo.. is a singleton.... thats why you keep receiving the same value

if you want a different userinfo.. then use 'userInformation' or other identifier.

Upvotes: 0

footyapps27
footyapps27

Reputation: 4042

1.Try cleaning the project(Shift + Command + K).

2.If that does not help, you can reset your simulator.

3.Also try quitting your X-Code & launch the project again.

Upvotes: 1

Related Questions