Lisp_Object list = Qnil;
NSEnumerator *colorlists;
NSColorList *clist;
+ NSAutoreleasePool *pool;
if (!NILP (frame))
{
}
block_input ();
-
+ /* This can be called during dumping, so we need to set up a
+ temporary autorelease pool. */
+ pool = [[NSAutoreleasePool alloc] init];
colorlists = [[NSColorList availableColorLists] objectEnumerator];
while ((clist = [colorlists nextObject]))
{
NSString *cname;
while ((cname = [cnames nextObject]))
list = Fcons ([cname lispString], list);
-/* for (i = [[clist allKeys] count] - 1; i >= 0; i--)
- list = Fcons (build_string ([[[clist allKeys] objectAtIndex: i]
- UTF8String]), list); */
}
}
-
+ [pool release];
unblock_input ();
return list;