Commit Graph

43 Commits

Author SHA1 Message Date
Andrew Hyatt
a23df37eff Remove execution bit from source files of AppKit 2017-08-23 09:25:24 -07:00
Christopher Lloyd
9f394dae57 merge 157cfef 2015-03-26 21:51:03 -04:00
Robert Grant
7306d272b8 JPEG is not encoding the DPI 2014-10-24 16:16:31 -04:00
Airy ANDRE
dc1f86a039 revert the NSFileManager change + optimisation - mainly trying to limit the number of file existence checks when looking for a resource - for some weird reason, this can be very expensive on Win32 2014-02-14 18:13:20 +01:00
Airy ANDRE
d0d37bd676 Better encoding support 2013-11-04 18:23:42 +01:00
Jim Truher
b6821086c1 Adding more jpeg extensions. 2012-09-19 14:25:45 -07:00
Robert Grant
8310300ba7 Pass the properties through to the encoder 2012-05-02 17:21:57 -04:00
Airy ANDRE
30c8d41736 Leaks fixes 2012-02-07 18:12:16 +01:00
Robert Grant
11f26ebdb4 Support uppercase image filetypes as Cocoa does 2012-01-13 14:12:19 -08:00
Airy ANDRE
49f2766df5 Merge with latest cocotron trunk - I hope I didn't kill anything... 2011-09-21 18:28:15 +02:00
Airy ANDRE
818b289cde Support for JPEG image destination 2011-09-20 14:32:02 +02:00
Christopher Lloyd
8d887a24c4 Rough in some spell checker classes and clean up warnings 2011-08-22 00:14:07 -04:00
Airy ANDRE
f19449017c Support for TIFF data in the pasteboard 2011-08-04 18:47:52 +02:00
Robert Grant
645ca41e03 Support setPixel:atX:y: on little endian platforms 2011-07-28 13:31:12 -04:00
Dr. Rolf Jansen
157cfef21d fixed broken screen capturing -[NSBitmapImageRep initWithFocusedViewRect:] 2011-02-20 17:23:36 -03:00
Christopher Lloyd
96618f65be add new source/resources to AppKit project, add PNG encoding support 2010-11-05 16:09:59 -04:00
Christopher Lloyd
091bb5dc7b Onyx2D improvements 2010-10-22 11:57:22 -04:00
Christopher Lloyd
7b045dfb6b - Mike Shields' NSBox custom type implementation
- Onyx2D optimizations, faster blend, image resample, axial gradient
- NSBitmapImageRep now copies original CGImage lazily, memory leaks fixed
- Debug configurations
- NSDictionary optimizations
2010-05-11 11:28:47 -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
Christopher Lloyd
3c0f029d38 - NSBitmapImageRep use of CF* for CF types
- NSScroller use of display fixes
- NSMenuView use of display fixes
- NSToolbar fixes for delegate based default items
- NSToolbarItemView selection drawing
- NSControl fixes
- NSGraphicsContext behavior fixes
- NSBundle pathForResourceFile:inDirectory:, pathsForResourcesOfType:inDirectory fixes, localization table caching
- NSAffineTransform decoding
- NSString boolValue, intValuem integerValue, longLongValue fixes
- NSPathUtilities constants, skeletons
- renamed objc_msg_send to objc_msgSendv, objc_msgSendv_stret implementation for Windows (unused)
- NSOldXMLReader fixes when disabling exceptions
- NSCurrentLocaleIsMetric for windows
- Switch Foundation to use -l ws2_32
2010-03-09 18:14:48 +00:00
Christopher Lloyd
7abced1ee8 patch by Andy Balholm, TIFF and document fixes 2009-12-02 16:18:17 +00:00
Christopher Lloyd
1a2ac73769 - initial CFData implementation
- NSBitmapImageRep -TIFFRepresentationOfImageRepsInArray:, -TIFFRepresentationOfImageRepsInArray:usingCompression:factor
- NSImage -TIFFRepresentation, -TIFFRepresentationUsingCompression:factor:
- renamed NSTIFFReader to O2Decoder_TIFF
- renamed O2ColorSpaceType constants to kO2ColorSpaceModel ones
- initial CG/O2ImageDestination implementation supporting simple TIFF encoding via O2Encoder_TIFF
- O2DataProvider, O2DataConsumer work
- Some CF related cleanup in O2/CG
2009-12-01 22:27:05 +00:00
Christopher Lloyd
309746b175 (fixes issue #457)
cleanup warnings
2009-11-30 21:44:17 +00:00
Christopher Lloyd
7e5ec4ecb8 - moved CG* basic types to CFBase.h
- cleaned up CF and CG headers so they do not have ObjC in them
- AppKit changes related to CF/CG header changes
- added CFNetwork and CoreServices skeletons
2009-11-12 18:07:15 +00:00
Christopher Lloyd
2a9778ec3d i376 partial fix, imageRepWithContentsOfFile: implemented, NSRectFill* function fixes for blend modes 2009-08-26 19:04:20 +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
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
f60cc689f5 - ImageIO and in turn NSBitmapImageRep now support reading GIF without transparency
- Added host byte order constants to CGImage.h
- Fixed problem in NSBitmapImageRep with float bitmap flag
- Added NSCocoaErrorDomain constant to NSError
2009-01-09 19:18:31 +00:00
Christopher Lloyd
b77c91dddf - NSInputStream fixes for NSData based stream
- NSBitmapImageRep initWithData crash fixed due to uninitialized _bitmapPlanes
- Changed all CGImageSource's to use a data provider instead of data
2009-01-08 20:01:19 +00:00
Christopher Lloyd
9e76b3cb46 -[NSBitmapImageRep initWithData:] fixes 2009-01-05 20:41:56 +00:00
Christopher Lloyd
8c88cf165a - NSZombieObject implementation of methodSignatureForSelector:, forwardInvocation: so they report with the new FFI forwarding.
- NSBitmapImageRep createCGImage mis-autorelease causing crashes
- NSImage init implemented
- Fix NSImage so it returns image rep size if it has none of it's own.
2008-09-22 19:22:52 +00:00
Christopher Lloyd
44d0f81c97 - Changed KGContext_gdi to use KGImage read functions to support all available KGImage formats and use the KGRGBA8888 blending&coverage function. Removed CGGraphicsSourceOver_bgra32_onto_bgrx32, CGGraphicsSourceOver_rgba32_onto_bgrx32.
- NSBitmapImageRep fixes for CGImage creation/drawing
2008-09-22 14:54:29 +00:00
Christopher Lloyd
7346df9d54 - added -[NSBitmapImageRep CGImage], -[NSBitmapImageRep setPixel:atX:y], -[NSBitmapImageRep setColor:atX:y:], fixed plane allocation bugs.
- added fast integer divide by constant 255 for blend ops
- added -[NSColor numberOfComponents], [NSColor getComponents:]
2008-09-15 15:27:21 +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
a570c48944 - SWRender, added PDF draw test
- PDF drawing related cleanup
2008-05-01 03:39:59 +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
62bd11e1ad - Issue #72, Rolf Jansen's implementation of -[NSBitmapImageRep initWithFocusedViewRect:]
- Dirk Theisen's mergesort() and -[NSMutableArray removeObjectsFromIndices:numIndices:]
- Rolf Jansen's NSLocale related changes.
2008-02-16 20:27:01 +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
18bcbed5ad - First pass at PNG, JPEG and BMP image decoding support. Based on the public domain stb_image.c V1.00 by Sean Barrett. NSBitmapImageRep functional for these file types.
- TIFF decoding and KGRenderingContext_gdi fixed scanline order to top to bottom
- NSDocumentController fixed to compare file extensions case insensitively
- NSZoneRealloc fixed to support reallocating NULL on Windows
- NSData -initWithContentsOfURL:, +dataWithContentsofURL: implemented for file URL's
2007-09-19 18:01:20 +00:00
Christopher Lloyd
8412c6fa15 - moved glyph metric information into KGFont so that KG can track the baseline between shows, made KGFont functional and used by NSFont
-[NSDocument readFromURL:ofType:error:] implemented
-[NSDocument readFromFileWrapper:ofType:error:] implemented
-[NSDocument readFromData:ofType:error:] implemented
-[NSDocument loadFileWrapperRepresentation:ofType:] implemented
- radial shader improvements, adjusting for scaling and optimizations
- NSImageRep, NSPDFImageRep, NSBitmapImageRep fixes for file extension registration
- simple NSURL support for files
- NSToolbar fix so that it defaults to visible and appears when added to a window
2007-07-07 03:23:36 +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