|
About Andrew Choi
MIDI Programs
MIDI File Player (External Device)
MIDI Destination Pop-Up Button
Other Programs Cocoa Sample Programs Syntax Coloring Using Flex Algorithms Jazz Chord Analysis as Optimization
|
A blog where I will write mostly about programming in Cocoa and CoreMIDI, and experiences from my ports of Emacs and XEmacs to the Mac OS.
For Carbon XEmacs to be used as a standalone application bundle, one must be able to move the latter anywhere on the disk and the application should still find the files it needs in the Resources subfolder. Evident of the flexibility of XEmacss installation and package system, a few lines of Lisp code added to
Carbon XEmacs can now be built as a standalone application bundle. Ive been coding and debugging it in Xcode. Since Im now thinking about its release, I made the necessary modifications to the autoconf, make, and config.h files so it can be built and bootstrapped as a clickable application for Carbon in the usual way. It has been a long day of work because build-and-test cycles are longer: one change to
The toolbar items now work. Wrote some code for popup menus today. Thats really easy to do because popup menusre just menus, which the code for the menubar already constructs. Heres a screen shot of a popup menu for choosing the state of a customized variable. Notice that thanks to the now existing implementation of pixmaps, the switches and disclosure triangles in customize are also functional! I havent implemented widgets yet. But I think Ill leave that for the future. Need to wrap this project up. I have to think about selling my MIDI shareware program.
The toolbar has been difficult to implement because Carbon toolbars arent designed to change their contents as dynamically as XEmacs ones. In Carbon, a toolbar pretty much stays the same throughout the lifetime of its window, unless it is customized by the user. Its contents dont usually change according to the editing mode in the window, as for XEmacs. After a lot of coercing, I got it to work. Of course customization, in the Carbon sense, has been turned off. The implementation is unavoidably inefficient although there arent any noticeable delays when switching toolbars. Ive taken some icons from my Fedora Linux machine for the initial toolbar in the following screen shot (the frame in the background). Notice that I havent replace the icons for other modes yet (e.g., the Gnus ones in the screen shot). It takes a long time to pick, convert, and replace icons. Notice that help text works (frontmost frame, light yellow box). The toolbar items arent functional yet. Ill work on handling commands tomorrow. After this, that should be a breeze.
The transparency problem I had with XPM images yesterday is quite easy to fix. Heres XEmacss splash screen with the XEmacs (beta version) logo.
|
Lists
Less-Known Facts About Emacs
Chinese Restaurants in Calgary
Calgary/Banff Tourist Attractions
Top-10 Reason I Stopped Working on Emacs
Misc
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 2003, 2004, 2005 Andrew Choi (Contact Information). | Created with FCBlog |