Alexander Ljungberg
835bd59330
Fixed: popovers in modal windows couldn't be interacted with.
...
This prevented e.g. date picker popovers in sheet dialogs.
2012-07-19 16:34:15 +01:00
Alexander Ljungberg
b038b6baf6
Fixed: browser propagation control when not in browser.
...
This would lead to a `[CPPlatformWindow _willPropagateCurrentDOMEvent] unrecognized selector sent to instance` error if an event was sent in a non DOM environment.
2012-07-13 12:41:26 +01:00
aparajita
1a4e5a345d
Merge pull request #1576 from ggsato/fixForOpeningExistingDocument
...
fixed needsUntitled evaluation
An untitled window will only open if ALL documents fail to load.
2012-07-12 19:29:07 -07:00
Aparajita Fishman
6b6f5d98e4
Overhaul of system font handling
...
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
2012-07-09 15:29:56 -07:00
ggsato
db47d8fb85
fixed needsUntitled evaluation
2012-06-28 12:01:37 +09:00
ggsato
fabe1d8991
formatting and now subclassing is tested by Open a document
2012-05-26 11:08:57 +09:00
ggsato
2a0ee14130
wrapped window.status clear statement
2012-05-25 01:52:09 +09:00
ggsato
ab1dc15393
moved types declaration
2012-05-24 23:58:59 +09:00
ggsato
3a750591bb
moved types declaration
2012-05-24 23:55:04 +09:00
ggsato
7da9877c5f
fixed shared CPDocumentController instantiation and added its test
2012-05-24 23:12:07 +09:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Randall Luecke
203942d123
Documentation of CPApplication.
2011-01-30 16:56:56 -05:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Francisco Ryan Tolmasky I
9796f5d5d7
Fix CPPopUpButton menu support.
...
- Added enumerateObjectsUsingBlock: to CPArray
- Fixed a remaining case of [] being used instead of objectAtIndex: in CPMutableArray.
- Added KVO support for menu items array in menus.
- Changed CPPopUpButton to use KVO to sync up with menu instead of notifications.
- Removed extra menu encoding in CPPopUpButton.
- Removed extra mainMenu object from CPApplication.
- Use setters in CPResponder instead of direct ivar access in initWithCoder:.
Closes #298 .
Closes $1059.
Reviewed by me.
2011-01-17 01:31:15 -08:00
Francisco Ryan Tolmasky I
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Klaas Pieter Annema
e78200838f
don't make a modally run window the main window
2010-10-06 09:04:54 +02:00
Alexander Ljungberg
4dc102a3cf
Applied coding standards.
2010-09-28 19:00:59 -04:00
Aparajita Fishman and Klaas Pieter Annema
0c4ce1e756
Additions to the theme API to open it up to developers and provide access to theme attributes defined in ThemeDescriptors.j:
...
- Current theme blend is available via CPApplication -themeBlend.
- List of themes is available via CPApplication -themes.
- CPThemeBlend adds the following methods:
themes
themeNames
- CPTheme adds a number of methods to access theme attributes:
classNames
attributesForClass:
attributeNamesForClass:
attributeWithName:forClass: (was _attributeWithName:forClass:)
valueForAttributeWithName:forClass
valueForAttributeWithName:inState:forClass:
- _CPThemeAttribute -values was added to access the dictionary of attribute values.
- Theme browser application that demonstrates the API.
- In the course of making the test app, added the function CGInsetEqualToInset().
2010-09-16 10:28:06 +02:00
Alexander Ljungberg
c5d471b31b
Fixed: if a text field in a modal window was clicked, it would become deselected. This prevented text selection by dragging or by double click. The problem was that the DOM event guard was always enabled when a modal window was on screen and this prevented the normal mouse event pass through to the text field input element.
2010-09-14 15:38:45 -04:00
Koen Bok and Klaas Pieter Annema
5b7497093c
Made flatten work with custom themes.
2010-09-08 16:12:22 +02:00
Klaas Pieter Annema
b092ed8c2c
only load Aristo from AppKit/Resources
...
Other themes are loaded from the main bundle's resource directory
2010-09-08 16:12:21 +02:00
Randall Luecke
7ac59dd142
Sheets should be assigned to the platform window of the window it is attached to.
2010-07-31 20:20:18 -05:00
Aparajita Fishman and Ross Boucher
9ab446b790
Added image alignment support to CPImageView, CPWindowController always loads a cib from the main bundle for consistency with Cocoa, CPApplication modified to explicitly load the About panel cib from the Framework bundle
2010-06-09 14:24:00 -07:00
Saikat Chakrabarti and Ross Boucher
c8759babae
Adding checks for existence of DOM when calling CPPlatformWindow+DOM-only methods
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2010-06-06 11:48:15 -07:00
Francisco Ryan Tolmasky I
0f2ee1966e
Only create main menu in code if no cib is loaded.
...
Reviewed by me.
2010-04-28 02:06:01 -07:00
Francisco Ryan Tolmasky I
6ac0191451
Show main menu in cibless apps.
...
Remaining: Make a main menu with quit for desktop version, without for web version.
Reviewed by me.
2010-04-27 11:33:00 -07:00
Francisco Ryan Tolmasky I
b3141f1a62
Add CPApplicationWillTerminateNotification.
...
Reviewed by me.
2010-04-12 12:21:45 -07:00
Tom Robinson
cd4a70ea78
Add hook to CPApplicationMain to notify parent frame (if app is in a child frame of same origin)
2010-04-04 18:39:47 -07:00
Ross Boucher
2bf16da441
These menu key equivs were incorrect.
2010-03-30 11:10:36 -07:00
Francisco Ryan Tolmasky I
8f4b2a7cfd
Fail more gracefully when main cib is not found.
...
Reviewed by me.
2010-03-29 23:20:31 -07:00
Emmanuel Maillard and Ross Boucher
58179939bb
- fix a typo in documentation
2010-03-22 14:43:31 -07:00
Ross Boucher
5a9682b1bd
Remove two calls to a dead function.
2010-03-16 18:13:57 -07:00
Ross Boucher
ef7ad8ee8e
A few minor bug fixes for key/main window handling.
2010-03-13 22:49:06 -08:00
Ross Boucher
2841223c9d
Create the args and namedArgs objects in Bootstrap.js, pass them along up to CPApplication.
2010-03-08 15:14:09 -08:00
Ross Boucher
4a43e4fda6
Overhaul of the key/main window status, esp. with respect to assigning new values after a window
...
closes or after a window is minimized, and with app activation/deactivation.
2010-03-02 15:16:10 -08:00
Francisco Ryan Tolmasky I
756877b94c
Removed some unecessary uses of sprintf.
...
Reviewed by me.
2010-02-25 12:38:50 -08:00
Francisco Ryan Tolmasky I
c33e2ee51f
Fixed a bug with objj_debug_typecheck incorrectly misidentifying empty string as not a CPString. Also fixed a number of type declarations after running with objj_msgSend_decorate(objj_typecheck_decorator); turned on.
...
Reviewed by me.
2010-02-21 13:37:20 -08:00
Ross Boucher
5a8d491f10
Check the Info.plist for a CPDefaultTheme key for the name of the default theme.
...
Closes #418 .
2010-01-24 00:34:35 -08:00
Ross Boucher
3f8c311ea2
Bring windows forward when opening a sheet.
...
Closes #391 .
2010-01-21 23:24:03 -08:00
Tom Robinson
345f5e14de
Refactor hardcoded Aristo.blend into CPApplication +defaultThemeName
2010-01-13 01:53:23 -08:00
Francisco Ryan Tolmasky I
eb43e416ae
Added CPProxy class to support better undo proxying in CPUndoManager.
...
Closes #370 .
Closes #371 .
Reviewed by me.
2009-12-11 11:38:26 -08:00
Ross Boucher
dfb7599bb6
Remove the cursor hack from CPImageAndTextView, set the cursor globally to the default in CPApplication
2009-12-04 11:22:57 -08:00
Derek Hammer and Francisco Ryan Tolmasky I
0b85847524
Adding reset to CPAppBootstrapper so that application can be restarted programmatically
2009-12-03 11:20:44 -08:00
Ross Boucher
56a739655f
A whole bunch of textfield and key event fixes.
2009-12-02 17:14:47 -08:00
Ross Boucher
0a8bd9f687
Remove the "Cancelled" message that Safari shows when an XHR is cancelled during startup. Closes #344 .
2009-11-24 18:38:25 -05:00
Ross Boucher
72d01865ae
Add about panel
2009-11-20 18:06:16 -08:00
Francisco Ryan Tolmasky I
77bd8d3a76
Add hide: and hideOthers support.
...
Reviewed by me.
2009-11-16 18:27:38 -08:00
Francisco Ryan Tolmasky I
48cd362015
Fix for using unicode characters with capp config.
...
Reviewed by me.
2009-11-16 15:09:22 -08:00