Commit Graph

49 Commits

Author SHA1 Message Date
Christopher Lloyd
2d697b6b2c fix main/key window behavior 2010-11-03 23:25:23 -04:00
Christopher Lloyd
c5a2c52237 implement private API frameViewClassForStyleMask:, fix initial first responder behavior, send mouse moved events to window if arent under any view, send scroll wheel events to view under mouse, not first responder 2010-11-03 22:22:02 -04:00
Christopher Lloyd
7e8c82d4eb rename NSWindowBackgroundView to NSThemeFrame to maintain private API compatibility 2010-11-01 22:49:13 -04:00
Christopher Lloyd
2b9915384e implement aspect ratios in NSWindow resizing 2010-11-01 21:29:16 -04:00
Christopher Lloyd
0f1a73fd84 NSWindow/Win32Window setLevel: implemented and used in AppKit for proper window levels 2010-11-01 21:13:23 -04:00
Christopher Lloyd
c31a2ecaf8 fixed mouse up in NSWindow 2010-09-03 14:44:12 -04:00
Christopher Lloyd
caca73d641 - remove red background for non-visible window border area
- disable per pixel alpha windows
- fix retain bug in nib loading
- rearrange SSL handle to be separate loaded bundle which depends on openssl
- NSSocket_windows loads the SSL handler if present
- added some assorted BSD functions to CFBase.m
- added umbrella Cocotron project
2010-08-19 21:34:44 -04:00
Christopher Lloyd
78c061c1ec - retain fix in initWithFrame: in NSOpenGLView
- fixed mouseDragged: behavior when outside view
- fixed NSOpenGLView WM_PAINT message flooding
- CGLPBufferObj rough-in
- fix NSOpenGLView mouse coordinates
2010-05-27 21:59:11 -04:00
Christopher Lloyd
00dea648f8 - attempt at fixing flickering NSOpenGLView on Windows 7
- added opengl32 as a direct dependency
- added CGGradient skeleton
- reorganized some private CA, FreeBSD CGL fixes
2010-05-21 16:44:50 -04:00
Christopher Lloyd
589f709a12 - addresses issue #491 for borderless windows and opaque opengl surface
- Fixes issues in the FreeBSD build
2010-05-17 21:14:13 -04:00
Christopher Lloyd
76ec946032 proper resizing and menu disabling/enabling with -[NSWindow setStyleMask:] 2010-05-11 16:18:42 -04:00
Christopher Lloyd
f878c01001 Substantial NSOpenGL/CGL/Win32Window changes for alpha blended NSOpenGLView's in alpha blend windows. Includes:
- Removed NSOpenGLDrawable_gdiView, moved private child window to CGLContext
- Added some more CGL calls
- NSWindow/Win32Window frame is now actual frame
- X11 OpenGL and Window frame broken
2010-04-26 22:56:25 -04:00
Sven Weidauer
bc50c323c8 imported patch NSWindow-zoom.patch 2010-03-29 21:48:09 +02:00
Christopher Lloyd
257b62b973 - cleanup NSWindowBackgroundView border type
- fixed Info.plist for new CFNetwork, CoreServices targets for Linux/Darwin
2010-03-23 15:20:48 +00: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
e9baa8323f - unbordered windows use opaque Win32 layered windows
- improved sheet animation based on the use of layered windows
- NSWindow -setStyleMask: works even if the window is already created
- NSWindow manages a NSGraphicsContext instead of creating a new one each time the -graphicsContext method is called.
- Some child window management code in NSWindow.
- better ordering on autosave frames and use of toolbars preventing windows from growing each time they are created
- window background view marked for display when the toolbar size changes
- NSDockTile ivar added to NSApplication
- implementation of NSString +localizedNameOfStringEncoding:
2010-03-10 18:19:26 +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
f4367797a1 change use of -[NSWindow _setStyleMask:] to setStyleMask: 2010-01-08 01:48:11 +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
fe17a584de (fixes issue #429) 2009-12-02 02:33:46 +00:00
Christopher Lloyd
0ad80ec0c8 (fixes issue 407) by Erlend Böe
(fixes issue 409) by Erlend Böe with modification to release already initialized _timeZone
(fixes issue 410) by Erlend Böe
(fixes issue 414) by Erlend Böe, NSDateFormatter missing methods
(fixes issue 415) added NSOSStatusErrorDomain constant
(fixes issue 417) added NSStringDrawing options
(fixes issue 419) by Markus Hitter, NSDateFormatter off by one for month
(fixes issue 421) by Markus Hitter, NSWindow resign main window behavior fix
(fixes issue 422) by Erlend Böe, NSDateFormatter returns
(fixes issue 424) by tobias at platen-software.de, CoreFoundation.xcodeproj and NSKeyedUnarchiver fix
(fixes issue 425) by Markus Hitter, NSButtonCell drawing fix
2009-10-29 15:21:40 +00:00
Christopher Lloyd
aee4c8dc14 (fixes issue 405) display when an NSWindow is not visible causes layout problems 2009-10-19 18:33:11 +00:00
Christopher Lloyd
a71faaf373 (fixes issue 406), menu bar removed when an NSWindow is run as a modal window 2009-10-19 17:48:46 +00:00
Christopher Lloyd
a0319748b2 - Issue #382, implemented NSWindowDidResizeNotification, NSWindowDidMoveNotification , NSWindowWillStartLiveResizeNotification, NSWindowDidEndLiveResizeNotification
- NSKeyedUnarchiver rect string parsing fix for floating point coordinates
- minor NSCollectionView* decoding fixes
2009-09-13 02:52:22 +00:00
Christopher Lloyd
e2759c7c22 i368 fix by Gary Byers, typo in NSWindow.m 2009-08-19 03:40:34 +00:00
Christopher Lloyd
88ffb9dc71 i361 fix by Gary Byers implements NSApplication orderedWindows, orderedDocuments 2009-08-18 16:28:04 +00:00
Christopher Lloyd
c285b5080d Andy Balholm's NSWindowController,NSDocument,NSDocumentController,NSWindow and NSApplication changes 2009-08-05 21:11:32 +00:00
Christopher Lloyd
4ff966072c Renamed NSTrackingRect to NSTrackingArea 2009-07-29 16:59:33 +00:00
Christopher Lloyd
866599342a Issue #305, Markus Hitter's ToolTips patch 2009-07-29 16:57:31 +00:00
Christopher Lloyd
7d262989e5 Andy Balholm's fix for undocumented undo features in NSWindow 2009-07-27 16:53:09 +00:00
Dr. Rolf Jansen
efb760b9e8 improved window cascading
- resembles the behavior at Mac OS X
- accordance to the Cocoa documentation for the case of topLeftPoint = {0, 0}
2009-07-23 18:14:50 +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
Christopher Lloyd
97a4048fb2 Updated towards Objective-C 2.0 runtime API and some decoupling of objc runtime from Foundation
- added 2.0 objc/runtime.h, message.h with most of the declarations
- added deprecated.h for deprecated declarations
- cleanup objc-class.h to use standard naming for structs
- moved FOUNDATION_EXPORT to NSObjCRuntime.h
- deleted ObjCTypes.h, ObjectiveC.h
- moved Object.h/Protocol.h to objc headers
- added method.m, ivar.m for method_ and ivar_ functions
- Changed all use of deprecated SELNAME to sel_getName
- Changed use of OBJCLog in Foundation to replacement NSCLog
- Changed most all the equivalent OBJC* names to 2.0 function names
- rename OBJCIsKindOfClass to NSObjectIsKindOfClass, move to NSObject.m
- removed empty OBJCReportStatistics, objc_lock.h
2009-04-07 00:17:26 +00:00
Christopher Lloyd
4cc03f91bf Issue #271 fix by tobias at platen-software.de for hide/unhide quitting app 2009-03-29 13:50:20 +00:00
Christopher Lloyd
ca879fbb39 - NSToolbar/NSToolbarItem overhaul. Better layout including visibility priority, streamlined sizing interaction between items, toolbar and window, better overflow menu tracking. Customization palette work in progress. Probably some regressions if anyone was using it.
- Removed import of windows.h in OBJCDynamicModule and typed NSModuleHandle as void * for windows. Fixed windows specific files which needed windows.h
-NSTableView/NSOutlineView changed to not cache numberOfRows in instance, but do cache inside methods, to avoid out of sync situations (doc.s do say it is called a lot). Some NSInteger updating.
- NSNib, fixed duplicate sending of awakeFromNib to objects in name table as they were already in archive after being assigned UID provided name was present in nib. Does not send awakeFromNib to objects in name table not present in nib.
- NSBundle, disable NSUnimplementedMethod in localizedInfoDictionary
- use winsock2 in NSSocket_windows
- NSBitmapImageRep imageRepsWithContentsOfFile check for nil result on initWithContentsOfFile:
- Fixed KGPDFPage box calculations
- NSSound_win32 BOOL fixes
2009-02-17 19:12:02 +00:00
Christopher Lloyd
4584ad1d2a - Sheet animation synchronous, run loop will run until done.
- NSView _setWindow: no longer resigns first responder so that calling it from NSWindow dealloc does not cause a first responder resignation. Callers of _setWindow other than NSWindow dealloc resign first responder with _deepResignFirstResponder instead. This fixes an issue with NSTextView messaging a non-existent delegate as part of resigning first responder in NSWindow dealloc, post NSWindow close.

- NSWindow removes itself as a notification observer in dealloc to avoid crash sending animation did end notifications on a dealloc'd window.

- NSStreamFileCurrentOffsetKey constant added
- One time memory leak in NSPlatform_win32 of environment string fixed.
- NSTIFFTagExifIFD, NSTIFFTagGPSIFD added
- KGImageSource newImageSourceWithData: uses class names instead of direct references
2008-12-21 03:25:34 +00:00
Christopher Lloyd
b7dda287b6 - KGImageSource_TIFF returns DPI properties and will return multiple images if requested
- NSBitmapImageRep uses DPI properties from CGImageSource if present to calculate size
- NSImageCell uses NSImage drawInRect: which in turn will scale image
- NSImage has more caching behaviour and will resize images into cached reps
- NSCachedImageRep uses the new rasterizer always
- -[NSWindow deviceDescription] returns something usable by NSImage
2008-08-12 16:16:19 +00:00
Christopher Lloyd
c5674a539a - Issue #124, Cédric Luthi's fix for -[NSWindow _makeSureIsOnAScreen]
- Improved path stroking in the GDI context, line cap, line join and dashes enabled, along with improved coordinate/size transformation
- Fixed drawing cached image rep's in KGContext_builtin_gdi
2008-07-01 16:01:56 +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
c365e20d59 - Fixed problem with -[NSWindow setMenu:] causing window display prior to awakeFromNib
- Changed some of the build install permissions from a-w to og-w as u-w was causing problems
2008-02-03 06:10:46 +00:00
Christopher Lloyd
fcda3ab7d9 - Large number of missing AppKit constant/methods added, most of the simpler ones implemented. Cleanup and instance size changes.
- Some existing implementation updated for new methods, primarily NSDocument
- Removed legacy keyed encoding/decoding functionality in AppKit
2007-11-08 15:58:54 +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
a02d2a3788 - Issue 45 fix by Rolf Jansen, -[NSWindow graphicsContext] returns an NSGraphicsContext, not a KGContext.
- Use of -(KGContext *)graphicsContext changed to -(KGContext *)cgContext
2007-09-12 01:25:56 +00:00
Christopher Lloyd
c626d0ba73 - Issue 41, NSDragOperationEvery added
- Issue 42, NSTableView drag&drop implemented
- Issue 43, NSMutableArray removeObjectsAtIndexes: and insertObjects: atIndexes: implemented
- NSData, NSOpenGLView, NSOpenGLPixelFormat -initWithCoder implemented for keyed unarchiver, i.e. nibs
- First pass at NSOpenGLView, NSOpenGLContext, NSOpenGLPixelFormat. NSOpenGLView functional
- Fixed dealloc/copy bugs in KGGraphicsState
2007-09-06 03:28:48 +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
291d859a1e - Fixed case sensitivity on ObjC* #import's for case sensitive file systems submitted by halfactivist.
- CGWindow, NSCustomView, NSDrawer, NSWindow, NSWindowController, Win32Window fixes from Issues 10-17 submitted by Rolf Jansen.

- NSFileWrapper implementation submitted by Dirk Theisen.

- Added stubs to NSAssertionHandler, NSDirectoryEnumerator, NSFileManager for methods needed by NSFileWrapper addition.

- Added FlateDecode filter derived from a public domain implementation (not zlib) by Sean Barrett to the PDF system.

- Added ImageIO directory and starting point files.

- Added more starting point code in KoreGraphics and clean up in KG and Win32. Added KG(Mutable)Path.

- First pass at NSPDFImageRep hooks into underlying KG classes.
2007-03-11 19:28:02 +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