Permalink
Browse files

Add xcodeproj for framework.

  • Loading branch information...
1 parent 1753f36 commit 7d63975cf34868939d30ed8696bbaef04d26c529 Dorian Johnson committed Oct 7, 2011
Showing with 5 additions and 50 deletions.
  1. +0 −15 Extras/INPopoverParentWindow.h
  2. +0 −34 Extras/INPopoverParentWindow.m
  3. +1 −1 INPopoverController.h
  4. +4 −0 INPopoverPrefixHeader.pch
@@ -1,15 +0,0 @@
-//
-// INPopoverParentWindow.h
-// Copyright 2011 Indragie Karunaratne. All rights reserved.
-//
-// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#import <Foundation/Foundation.h>
-
-
-@interface INPopoverParentWindow : NSWindow
-
-- (BOOL)isReallyKeyWindow;
-
-@end
@@ -1,34 +0,0 @@
-//
-// INAlwaysKeyWindow.m
-// Copyright 2011 Indragie Karunaratne. All rights reserved.
-//
-// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-#import "INPopoverParentWindow.h"
-#import "INPopoverWindow.h"
-
-
-@implementation INPopoverParentWindow
-
-- (BOOL)isKeyWindow
-{
- BOOL isKey = [super isKeyWindow];
- if (!isKey) {
- for (NSWindow *childWindow in [self childWindows]) {
- if ([childWindow isKindOfClass:[INPopoverWindow class]]) {
- // if we have popover attached, window is key if app is active
- isKey = [NSApp isActive];
- break;
- }
- }
- }
- return isKey;
-}
-
-- (BOOL)isReallyKeyWindow
-{
- return [super isKeyWindow];
-}
-
-@end
@@ -5,7 +5,7 @@
// Licensed under the BSD License <http://www.opensource.org/licenses/bsd-license>
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#import <Foundation/Foundation.h>
+#import <Cocoa/Cocoa.h>
#import "INPopoverControllerDefines.h"
@class INPopoverWindow;
@@ -0,0 +1,4 @@
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif

0 comments on commit 7d63975

Please sign in to comment.