Skip to content
Snippets Groups Projects
Commit 11d5d493 authored by George Nachman's avatar George Nachman
Browse files

Initial hackery

parent f0fb73bc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,8 +14,8 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="514"/>
<integer value="519"/>
<integer value="377"/>
<integer value="351"/>
<integer value="377"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Loading
Loading
@@ -386,7 +386,7 @@
<string key="NSWindowRect">{{131, 73}, {598, 355}}</string>
<int key="NSWTFlags">611844096</int>
<string key="NSWindowTitle">Window</string>
<string key="NSWindowClass">NSWindow</string>
<string key="NSWindowClass">PTYWindow</string>
<nil key="NSViewClass"/>
<string key="NSWindowContentMaxSize">{1.79769e+308, 1.79769e+308}</string>
<object class="NSView" key="NSWindowView" id="1018218843">
Loading
Loading
@@ -969,6 +969,13 @@
<string key="minorKey">Headers/iTerm/PseudoTerminal.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">GTMCarbonEvent.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
Loading
Loading
@@ -985,11 +992,27 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">NSWindow</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="47097664">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">Headers/iTerm/PTYWindow.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">PTYWindow</string>
<string key="superclassName">NSWindow</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">toggleToolbarShown:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">toggleToolbarShown:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">toggleToolbarShown:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<reference key="sourceIdentifier" ref="47097664"/>
</object>
<object class="IBPartialClassDescription">
<string key="className">PseudoTerminal</string>
<string key="superclassName">NSWindowController</string>
Loading
Loading
@@ -1825,6 +1848,13 @@
<string key="minorKey">ImageKit.framework/Headers/IKImageBrowserView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">ImageKit.framework/Headers/IKSaveOptions.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
Loading
Loading
@@ -1895,6 +1925,13 @@
<string key="minorKey">QuartzFilters.framework/Headers/QuartzFilterManager.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QuickLookUI.framework/Headers/QLPreviewPanel.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
Loading
Loading
@@ -2057,7 +2094,7 @@
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
<integer value="1050" key="NS.object.0"/>
<integer value="1060" key="NS.object.0"/>
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
Loading
Loading
Loading
Loading
@@ -55,6 +55,8 @@
 
// True while in -[NSWindow toggleFullScreen:].
BOOL isTogglingLionFullScreen_;
BOOL canBecomeKey_;
}
 
- initWithContentRect:(NSRect)contentRect
Loading
Loading
@@ -73,6 +75,6 @@
- (int)screenNumber;
- (BOOL)isFullScreen;
- (BOOL)isTogglingLionFullScreen;
- (void)setCanBecomeKey:(BOOL)value;
@end
 
Loading
Loading
@@ -292,10 +292,11 @@ NSString *sessionsKey = @"sessions";
break;
}
 
myWindow = [[PTYWindow alloc] initWithContentRect:initialFrame
myWindow = [self window];
/*[[NSWindow alloc] initWithContentRect:initialFrame
styleMask:styleMask
backing:NSBackingStoreBuffered
defer:NO];
defer:NO];*/
if (windowType == WINDOW_TYPE_TOP) {
[myWindow setHasShadow:YES];
}
Loading
Loading
@@ -323,7 +324,7 @@ NSString *sessionsKey = @"sessions";
_resizeInProgressFlag = NO;
 
if (!smartLayout || windowType == WINDOW_TYPE_FORCE_FULL_SCREEN) {
[(PTYWindow*)[self window] setLayoutDone];
[[self ptyWindow] setLayoutDone];
}
 
if (windowType == WINDOW_TYPE_NORMAL) {
Loading
Loading
@@ -417,7 +418,7 @@ NSString *sessionsKey = @"sessions";
 
- (PTYWindow*)ptyWindow
{
return (PTYWindow*) [self window];
return nil; //(PTYWindow*) [self window];
}
 
- (NSScreen*)screen
Loading
Loading
Loading
Loading
@@ -1557,10 +1557,10 @@
HEADER_SEARCH_PATHS = Headers/iTerm/;
INFOPLIST_FILE = iTerm.plist;
LINK_WITH_STANDARD_LIBRARIES = YES;
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = "-licucore";
PRODUCT_NAME = iTerm;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
SECTORDER_FLAGS = "";
VALID_ARCHS = "i386 x86_64 ppc";
WARNING_CFLAGS = "-Wall";
Loading
Loading
@@ -1590,10 +1590,10 @@
GCC_WARN_UNUSED_VALUE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = iTerm.plist;
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = "-licucore";
PRODUCT_NAME = iTerm;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
VALID_ARCHS = "i386 x86_64 ppc";
WARNING_CFLAGS = "-Wall";
WRAPPER_EXTENSION = app;
Loading
Loading
@@ -1621,12 +1621,12 @@
GCC_WARN_UNUSED_VALUE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = iTerm.plist;
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = "-licucore";
OTHER_REZFLAGS = "";
PRODUCT_NAME = iTerm;
REZ_EXECUTABLE = YES;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
SECTORDER_FLAGS = "";
VALID_ARCHS = "i386 x86_64 ppc";
WARNING_CFLAGS = "-Wall";
Loading
Loading
@@ -1715,14 +1715,14 @@
GCC_VERSION = 4.0;
INFOPLIST_FILE = "Growl-Info.plist";
LD_DYLIB_INSTALL_NAME = "@executable_path/../Frameworks/$(EXECUTABLE_PATH)";
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = (
"-framework",
Carbon,
);
PREBINDING = NO;
PRODUCT_NAME = Growl;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
VALID_ARCHS = "i386 x86_64 ppc";
ZERO_LINK = YES;
};
Loading
Loading
@@ -1744,14 +1744,14 @@
GCC_VERSION = 4.0;
INFOPLIST_FILE = "Growl-Info.plist";
INSTALL_PATH = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = (
"-framework",
Carbon,
);
PREBINDING = NO;
PRODUCT_NAME = Growl;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
VALID_ARCHS = "i386 x86_64 ppc";
ZERO_LINK = NO;
};
Loading
Loading
@@ -1771,14 +1771,14 @@
GCC_VERSION = 4.0;
INFOPLIST_FILE = "Growl-Info.plist";
INSTALL_PATH = "$(HOME)/Library/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.5;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_LDFLAGS = (
"-framework",
Carbon,
);
PREBINDING = NO;
PRODUCT_NAME = Growl;
SDKROOT = macosx10.5;
SDKROOT = macosx10.6;
VALID_ARCHS = "i386 x86_64 ppc";
ZERO_LINK = YES;
};
Loading
Loading
Loading
Loading
@@ -1075,7 +1075,7 @@ static void RollInHotkeyTerm(PseudoTerminal* term)
NSRect screenFrame = [screen visibleFrame];
 
NSRect rect = [[term window] frame];
[NSApp activateIgnoringOtherApps:YES];
[[NSRunningApplication currentApplication] activateWithOptions:NSApplicationActivateIgnoringOtherApps];
[[term window] setFrame:rect display:YES];
[[term window] makeKeyAndOrderFront:nil];
switch ([term windowType]) {
Loading
Loading
@@ -1322,7 +1322,6 @@ static void RollOutHotkeyTerm(PseudoTerminal* term, BOOL itermWasActiveWhenHotke
i++;
}
HKWLog(@"Activate iterm2");
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
rollingIn_ = YES;
RollInHotkeyTerm(hotkeyTerm);
} else {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment