home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!world!zobkiw
- From: zobkiw@world.std.com (Joe Zobkiw)
- Subject: Gestalt Selectors in APPL
- Message-ID: <BzqC31.FAM@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- Date: Wed, 23 Dec 1992 20:40:12 GMT
- Lines: 31
-
- I need an application to install a gestalt selector.
- I know I need to load it into the System Heap but I
- have a few questions and comments.
-
- 1) Can I perform a "6-byte-xdef" type trick on this
- code? I'm not sure I can since even if I mark the
- 6-byte resource as sysHeap the code it points to is
- still in my application heap.
-
- 2) If I place my Gestalt selector function in a separate
- CODE resource, can I mark that resource as sysHeap and
- have it work properly? This would be WITHOUT any 6-byte
- tricks.
-
- 3) How can I remove the Gestalt selector once the app
- quits? Will
-
- err = ReplaceGestalt(selector, nil, &oldGestaltFunction);
-
- work or will this cause the System to jump to location 0
- the next time someone calls my selector?
-
- What's the easiest way? Thanks in advance! :)
-
- Joe Zobkiw
-
- --
- -------------------------------------------------------------
- joe zobkiw zobkiw@world.std.com aol: aflzobkiw
-
- macintosh.midi.synthesis.c.oop.asm.communications.graphics...
-