Bug with SFAuthorizationView, setAutoupdate and retainCount?
Bug with SFAuthorizationView, setAutoupdate and retainCount?
- Subject: Bug with SFAuthorizationView, setAutoupdate and retainCount?
- From: Jérôme Seydoux <email@hidden>
- Date: Fri, 9 Sep 2005 10:46:25 +0200
Hi all,
It seems that if I call [mySFAuthorizationView setAutoupdate:YES], the
view's retain count is incremented, and it is not decremented if I call
setAutoUpdate:NO. Thus, when I close the window owning the view, the
view it is not released, and 5 minutes after having unlocked the view,
my app crashes:
Thread 0 Crashed:
0 libobjc.A.dylib 0x909adb2c _cache_getMethod + 12
1 libobjc.A.dylib 0x909ad31c
_class_lookupMethodAndLoadCache + 164
2 libobjc.A.dylib 0x909ad1d4 objc_msgSend + 244
3 com.apple.securityinterface 0x9451b264 -[SFAuthorizationView
(Private) _tryState:interactive:] + 960
4 com.apple.securityinterface 0x9451ad98 -[SFAuthorizationView
updateStatus:] + 88
5 com.apple.Foundation 0x92885cfc __NSFireTimer + 116
6 com.apple.CoreFoundation 0x9075ed10 __CFRunLoopDoTimer + 184
7 com.apple.CoreFoundation 0x9074b688 __CFRunLoopRun + 1680
8 com.apple.CoreFoundation 0x9074ac3c CFRunLoopRunSpecific + 268
9 com.apple.HIToolbox 0x93129ac0 RunCurrentEventLoopInMode + 264
10 com.apple.HIToolbox 0x93129154 ReceiveNextEventCommon + 380
11 com.apple.HIToolbox 0x93128fc0
BlockUntilNextEventMatchingListInMode + 96
12 com.apple.AppKit 0x93631e44 _DPSNextEvent + 384
13 com.apple.AppKit 0x93631b08 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
14 com.apple.AppKit 0x9362e06c -[NSApplication run] + 472
15 com.apple.AppKit 0x9371e8bc NSApplicationMain + 452
16 com.ctmdev.FoxTrot 0x0000af00 start + 408
17 com.ctmdev.FoxTrot 0x0000ada4 start + 60
Did i did something wrong? Or should I fill a bug report?
A workaround is to call updateStatus from a timer I control, rather than
using setAutoUpdate...
Jérôme
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden