Commit Graph

24 Commits

Author SHA1 Message Date
Christopher Lloyd
bb52b16c47 OpenGLView fixes 2010-11-30 14:40:27 -05:00
Christopher Lloyd
8037820806 OpenGLView/Context/CGL fixes to not use child windows 2010-11-08 13:08:06 -05:00
Christopher Lloyd
a48926a543 finer grain needs display marking in NSView, also works properly if entire view is marked and the view is resized 2010-11-07 21:57:48 -05:00
Christopher Lloyd
4fdeb2c9de NSScroller, NSView minor improvements 2010-11-03 15:18:22 -04:00
Christopher Lloyd
b8bc414c64 - CFCopyDescription fix
- CFArrayGetCountOfValue fix
- NSString * to NSString * const fixes
- requestUserAttention: implementation
- NSTrackingArea fix, retains userInfo, does not retain userData
- removed unused code from NSWindowBackgroundView
- couple more font mappings in NSFont
- fixes to NSTrackingArea behavior in NSView
- faster visibleRect, precalculate as zero rect if hidden
- Fixed NSTrackingInVisibleRect behavior, doesn't do hit test
- Fixed NSTrackingArea testing to properly order exit/enter events
- setFrame: doesn't do anything if the new value is the same as the old value
- reorganize NSWIndow setFrame:display:/setFrame:display:animation:
- mark window as needing display if display called and not visible
- Win32Display will load fonts in main bundle for private usage
- use of setControlView: for cells in NSOutlineView and NSTableView
- _setSelectedRowIndexes: added to NSTableView for KVO
- NSString cString related fixes
- NSStringFormatter changes to accomodate NSNumberFormatter grouping separator
- NSNumberFormatter fixes
- appendFloat_generic removed, might cause problems
- NSSet fixes
- NSSocket_windows fixes for SSL handler
- per thread select capabilities
- NSLog uses fprintf instead of WriteFile so it synchronizes with NSCLog
2010-03-16 20:38:14 +00:00
Christopher Lloyd
cbeae71792 (fixes issue #499) constant NSString fixes by Sven Weidauer, NSPathCell/Control import fixes 2010-03-02 16:33:55 +00:00
Christopher Lloyd
3386fc9be4 (fixes issue #482) tracking area, cursor rect, tooltip, tracking rect overhaul by Markus Hitter 2010-01-07 15:13:06 +00:00
Christopher Lloyd
a5a72ba120 added a few layer methods to NSView 2010-01-06 15:20:00 +00:00
Christopher Lloyd
7fb1bfe503 KGColor renamed O2Color, API switched to C, KGColorSpace renamed O2ColorSpace. i356 fix, setFocusRingType:/focusRingType implemented in NSView 2009-09-04 16:36:13 +00:00
Christopher Lloyd
39920a8fb9 Issue #338, NSView.h missing @class for NSTrackingArea 2009-08-01 13:15:28 +00:00
Christopher Lloyd
ded0e9018d NSTrackingArea constants and rough-in in NSView 2009-07-29 20:42:28 +00:00
Christopher Lloyd
a73db3310f - split CoreGraphics out into it's own framework project. AppKit still embeds CoreGraphics but it is also built standalone on Foundation. (don't link against both)
- new experimental AppKit-MacOS-i386 target which sits on Apple's Foundation, ApplicationServices (not operational). Header&api usage fixes to clean this up.
- Redid NSBezierPath so it doesn't rely on private Cocotron CoreGraphics API.
- Change the NSRaise macros/functions to be inline so AppKit can just include it instead of depending on them in Foundation since they aren't present in OSX.
- split NSRaiseException() into it's own Foundation private header and removed use from AppKit.
- changed use of NSRangeEntries so AppKit can embed it on MacOS
- switched NSOutlineView use of NSInt*CallBacks to NSInteger*CallBacks
- added CGPDFContext and CGDataConsumer
2009-06-05 03:16:46 +00:00
Dr. Rolf Jansen
df830c8f4a implemented -[NSView setHidden:] 2009-04-13 21:54:13 +00:00
Johannes Fortmann
3226b44ae2 gdb po and -description method will return UTF8 strings
X11 socket set to non blocking
X11 font config via libfontconfig
font drawing clip fix
NSObjectController and NSArrayController -selectedObjects returns NSArray like Apple implementation
Unit test for NSObjectController
2009-02-16 15:18:36 +00:00
Christopher Lloyd
4b46450367 - Issue #110 patch from steph...@sente.ch, nib unarchiving issues
- Issue #111 patch from steph...@sente.ch, NSBrowserCellColorList
- Issue #112 patch from steph...@sente.ch, leak in  -[NSToolbarButton copyWithZone:]
- Issue #113, -[NSView defaultMenu] added, and menuForEvent: will use it there is no menu for the view
2008-05-14 18:44:15 +00:00
Christopher Lloyd
5aabd688f9 - Moved CG* headers to ApplicationServices and changed references in KG classes, this allows for building the KG classes on OSX from SWRender
- Cleanup of CG/KG classes, use CGGeometry instead of NSGeometry, fixed PathElement constant names
- SWRender, image resampling optimizations, added better basis for cubic curve tessellation
2008-04-17 16:59:58 +00:00
Christopher Lloyd
b10c5e4282 - Issue #54, Rolf Jansen's NSTextFieldCell inset fix
- Issue #53, Rolf Jansen's -[NSVew mouse:inRect:] implementation
- Issue #52, Rolf Jansen's NSTabView fix
- Issue #51, partial fix, prepareOpenGL only called once now
2007-12-13 15:44:38 +00:00
Christopher Lloyd
e5c2e1c5b5 - Issue 47 fix by Rolf Jansen, %f formatting bug fixes
- NSApplication*ActiveNotification's behavior implemented
- gcc 4.2.1 compiler warnings reduced
- First pass at PDF output, -[NSView dataWithPDFInsideRect:], and underlying NSPrintOperation, KGPDFContext and KGPDF* code functional but not complete (text, images and shadings not functional)
- Cleanup of KGContext,KGGraphicsState to be more general/abstract, moved KGRendering/DeviceContext into Win32
- NSCachedImageRep changed to use NSWindow instead of CGLayer
2007-10-15 18:08:57 +00:00
Christopher Lloyd
95a0d5cf32 - Issue 39 fix for NSDateFormatter, check for error being NULL in NSDateFormatter getObjectValue:
- Fixed bug in NSRunLoop which would cause a timer set up during an ASAP notification to not fire
- Removed text drag acceptance by non-key text fields, not the correct behavior
- Assortment of missing methods added, some implemented whole or partially, some not.
- Updated some of the Objective-C runtime structures to reflect Apple conventions (OBJCMethod -> struct objc_method, OBJCMethodList -> struct objc_method_list, etc)
2007-08-26 18:29:25 +00:00
Christopher Lloyd
a08967f04c - -[NSView print:] and -[NSDocument printDocument:] functional (if you implement printOperationWithSettings:error in NSDocument), brings up the print panel and paginates. Some NSView printing methods added, work on NSPrintOperation to autopaginate. There are a number of problems to sort out still.
- NSDocument initWithContentsOfURL,  printDocument:, printDocumentWithSettings:, printOperationWithSettings:error: implemented
- NSDocumentController recent document menu implemented, and some of the URL based methods.
-[NSURL isEqual:], -[NSURL isFileURL] implemented within the limits of the current capabilities
-[NSApplication windowsMenu] corrected (finds menu by name in nib)
+[NSMenuItem separatorItem] fixed (was returning broken separator)
- NSMenu loads special name (windows, font, recent doc.s, etc.) from nib and private API for locating by name
- Most NSPrintInfo getters/setters implemented.
- NSPrintPanel added
- Split KGRenderingContext into KGRenderingContext and KGDeviceContext and cleaned up around these classes
- Fixed page locating bug in KGPDFDocument
2007-07-19 16:16:41 +00:00
Christopher Lloyd
35d4c5b24f - Added Dirk Theisen's NSAssertionHandler.h
- First pass at functional NSIndexSet, NSMutableIndexSet
- Added hex identifiers in NSPredicate parser

- Roughed in NSSegmented*, NSSearchField*, NSLevelIndicatorCell*, NSAnimation, NSViewAnimation, NSTokenField*, NSTextTable*, NSTextBlock*

Implemented:
-[NSArray sortedArrayUsingDescriptors:]
-[NSMutableArray  replaceObjectsInRange:withObjectsFromArray:range:]
-[NSTask_win32 processIdentifier]
-[NSTextView firstRectForCharacterRange:]
-[NSView addSubview:positioned:relativeTo:]
2007-05-08 18:00:25 +00:00
Christopher Lloyd
ab72409ef1 - Fixed issue #24, NSImage now retains self for NSCopying
- Fixed issue #25, %C should work now in NSString format strings
- Initial pass at issue #26, partial implementation of NSKeyedArchiver

- Initial pass at recursive descent parser for NSPredicate format strings.
- A few CoreFoundation headers added to Foundation
- NSConditionLock template added.
-[NSBundle objectForInfoDictionaryKey:] implemented
-[NSCharacterSet isSupersetOfSet:] implemented (poorly)
-[NSMutableData replaceBytesInRange:withBytes:length:] implemented
-[NSData dataWithBytesNoCopy:length:freeWhenDone:] implemented
-[NSString UTF8String] implemented
-[NSString stringByStandardizingPath] added by not implemented correctly
-[NSError localizedDescription] implemented
+[NSSet setWithObjects:count:] implemented
- AppKit/binders renamed AppKit/NSKeyValueBinding
- Initial pass at NSFontDescriptor added
-[NSView convertSize:to/fromView:] implemented
-[NSFont getAdvancements:forGlyphs:count:] implemented
-A few NSAnimation/NSViewAnimation definitions added
2007-04-22 18:58:47 +00:00
Christopher Lloyd
578873e3cf Added templates for many missing classes, updated copyright for 2007, +[NSValue valueWithRange:],-[NSObject className] 2007-01-01 21:11:21 +00:00
Christopher Lloyd
30916ff6e5 Original 2006-12-22 04:41:44 +00:00