mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Introduce OakCreateViewWithColor
This is useful when needing colored dividers in a layouts.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
PUBLIC extern NSString* const OakCursorDidHideNotification;
|
||||
|
||||
PUBLIC NSBox* OakCreateViewWithColor (NSColor* color = nil);
|
||||
|
||||
PUBLIC BOOL OakIsAlternateKeyOrMouseEvent (NSUInteger flags = NSAlternateKeyMask, NSEvent* anEvent = [NSApp currentEvent]);
|
||||
PUBLIC void OakShowSheetForWindow (NSWindow* sheet, NSWindow* window, void(^callback)(NSInteger));
|
||||
PUBLIC void OakShowAlertForWindow (NSAlert* alert, NSWindow* window, void(^callback)(NSInteger));
|
||||
|
||||
@@ -2,6 +2,16 @@
|
||||
|
||||
NSString* const OakCursorDidHideNotification = @"OakCursorDidHideNotification";
|
||||
|
||||
NSBox* OakCreateViewWithColor (NSColor* color)
|
||||
{
|
||||
NSBox* box = [[[NSBox alloc] initWithFrame:NSZeroRect] autorelease];
|
||||
box.boxType = NSBoxCustom;
|
||||
box.borderType = NSLineBorder;
|
||||
if(color)
|
||||
box.borderColor = color;
|
||||
return box;
|
||||
}
|
||||
|
||||
void OakRunIOAlertPanel (char const* format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
Reference in New Issue
Block a user