home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!rpi!utcsri!skule.ecf!torn!csd.unb.ca!rush.mta.ca!cmcneil
- From: Chris McNeil <cmcneil@mta.ca>
- Subject: Menus, How do I save checkmark
- Message-ID: <1992Nov17.212522.22831@jupiter.sun.csd.unb.ca>
- X-Xxmessage-Id: <A72EDC1971010108@rush.mta.ca>
- X-Xxdate: Tue, 17 Nov 92 22: 27:53 GMT
- Sender: news@jupiter.sun.csd.unb.ca
- Organization: Mount Allison University
- X-Useragent: Nuntius v1.1.1d11
- Date: Tue, 17 Nov 1992 21:25:22 GMT
- Lines: 19
-
- I'm writing an application (think C) that uses a check beside a menu item
- under the prefs menu. When I exit my program I want to save the state of
- the menu item so I do this:
-
- /* Save the Prefs menu settings */
- ChangedResource(PrefsMenu);
- WriteResource(PrefsMenu);
-
- The next time I fire up the application there are no menu items visible
- under the prefs menu, only a blank rectangle appears when I select prefs.
- If I exit my program again and restart it the menu items reappear. Next
- restart they disappear etc.
-
- Can anyone tell me what I am doing wrong ? My menus are stored in the
- resource file.
-
- Thanks,
- Chris McNeil
- cmcneil@mta.ca
-