objective c - xCode archived application isn't starting threads -


my application consists of 2 windows.

  • the first window main window. has nstextview , nsview.
  • the second window preferences page. has nscolorwell change background color of nsview on main window via shared instance of class called maindata.

when press build/run button in xcode, app works perfectly. functions should.

when archive , export app, works excepts except background color change. when open app, background set should be, when change color colorwell, background doesn't update.

the background updates color using thread call [self setneedsdisplay:yes] in method using performselectoronmainthread.

i have no idea how troubleshoot because said, works when testing app.

any ideas?

update: found out reason isn't updating because threads aren't starting. still not sure why.

ahhh!

that frustrating...

i found out while(true){}loops don't work in archived applications. if wants explain me why that, let me know.

i hope answer helps people avoid confusion , frustration went through:)


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -