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
Francisco Ryan Tolmasky I
6829d502d7
Better support for opening files.
...
Reviewed by me.
2009-11-16 11:47:06 -08:00
Ross Boucher
93c90274b5
Updates for massaging a few key inputs.
2009-11-02 16:47:07 -08:00
Francisco Ryan Tolmasky I
2355cf4f6c
Fixed performKeyEquivalent: order (execute on view hierarchy first, then menus).
...
Reviewed by me.
2009-11-01 13:05:49 -08:00
Ross Boucher
2c0e717b23
Merge branch 'master' of git@github.com:280north/cappuccino
2009-11-01 11:21:56 -08:00
Francisco Ryan Tolmasky I
14ad8f6d6d
Cleaned up key equivalent handling and added support for key equivalents
...
to nib2cib.
Reviewed by me.
2009-10-31 18:32:58 -07:00
Ross Boucher
9ca96bc909
Add desktop support for recent file list
2009-10-31 09:52:26 -07:00
Ross Boucher
a0a81be042
Add support for reviewing unsaved documents before application termination.
2009-10-27 18:44:09 -07:00
Francisco Ryan Tolmasky I
0561f69c86
Made cancelTracking send a close menu event so that it doesn't behave passively.
...
Reviewed by me.
2009-10-22 19:58:34 -07:00
Francisco Ryan Tolmasky I
6076185da7
Added application activation.
...
Reviewed by me.
2009-10-18 17:35:53 -07:00
cacaodev and Ross Boucher
570a2a56ff
Added sample app. Corrected style (tabs)
2009-10-08 12:02:35 -07:00
cacaodev and Ross Boucher
d79ed12b5c
Attached sheet implementation
2009-10-08 12:02:26 -07:00
Francisco Ryan Tolmasky I
78fe93be68
Imrpoved identifying main menus in cibs.
...
Reviewed by me.
2009-09-04 12:37:38 -07:00
Francisco Ryan Tolmasky I
8fc45cf345
Workaround for terminate: warning when using cibs.
...
Reviewed by me.
2009-09-02 23:37:51 -07:00