Weird pointer change...
Weird pointer change...
- Subject: Weird pointer change...
- From: Peter Hudson <email@hidden>
- Date: Thu, 27 Apr 2017 21:26:05 +0100
macOS 10.12.3 Xcode 8.3
I have a very strange problem I have never come across before.
I open I file in my application, do a few typical operations in it - and then shut the file.
I then open another file - and do a few typical operations in it.
The app then grinds to a halt with an illegal access.
The problem occurs when I go to a table view to find the indexes of the rows selected in the table view by the user. On opening the second file, for the first few passes through the code, the pointer to the table view is correct and I access the table view correctly. Then suddenly the pointer changes. Its an oulet set in IB.
Closer inspection reveals that when the pointer to the table view changes, it changes to the address that the table view had previously when I had the first file open.
This code has been running without any problem for at least six years.
Any suggestions gratefully received !
Peter
_______________________________________________
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