Alexander Ljungberg
48be680fde
Test: clean up and fix minor errors.
2013-05-09 11:32:09 -07:00
Christophe Serafin
88a247c107
merged sources and show shouldReorderColumn usage in TableCibTest example
2013-04-17 01:57:07 +02:00
cacaodev and Aparajita Fishman
7225e7e038
New: deprecate -tableView:dataViewForTableColumn:row: and -outlineView:dataViewForTableColumn:item:
...
-tableView:dataViewForTableColumn:row: and -outlineView:dataViewForTableColumn:item: are deprecated in favor of ...viewForTableColumn:...
Using the previous delegate API and not caching the view with an identifier was degrading performance. With this change, developers are encouraged to use the new caching system and the CPTableView method -makeViewWithIdentifier:owner: to get the view.
Also fixed a condition where a view-based outline view was not always asking for the view from its delegate. In some circumstances, an outline view could be considered as view-based instead of cell-based.
Test for deprecated delegate methods in CPOutlineViewViewBasedCib and TableTest/ViewBased examples.
Fixes #1823
2013-03-15 08:16:02 -04:00
Blair Duncan and Antoine Mercadal
21de08506c
added in the xib that I modified for testing.
2013-03-14 13:49:42 -07:00
cacaodev
c8b812bbb5
FIXED: A data view edited in a table view was duplicated after a reload.
...
Previously in CPTableTView, a view being edited was not cached when unloaded, for example when made invisible after scrolling or when calling -reloadData.
This situation was causing a duplicated view to be added at the same place when the data view was loaded again.
After this commit, edited data views are cached and resign their first responder status just before they are added to the queue because they can be reused at another place.
Test: Added a "reload data" button in ViewBasedCib example.
2013-03-14 19:28:45 +01:00
Aparajita Fishman
cdb9777e96
Fixed: "Remove" button did not move with window resize
...
In the Manual/TableTest/DataView test app, the remove button did not pin to the right edge of the window when it resized.
2013-03-07 12:16:22 -05:00
cacaodev
ac3a45aec5
CPTableView: force the mask to CPViewNotSizable for IB made CPTableCellView.
...
Added documentation for tableView:dataViewForTableColum:row: delegate method. Document other cases, when we expect the data view to have a CPViewNotSizable mask.
ViewBasedCib example: added variable row heights.
2013-03-04 20:03:20 +01:00
cacaodev
10d120ccfd
Removed tracing in test apps. Added CPTrace.j in Tests/Manual/, available for any app who wants to import and use it. Added utility function computing moving average.
2013-02-26 16:06:02 +01:00
cacaodev
12e743f9dc
nib2cibed viewBasedCib example to resurrect scrollers
2013-02-23 14:52:38 +01:00
cacaodev
16bb194019
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.xib
2013-02-23 10:55:08 +01:00
Blair Duncan
5c3d3bbc2e
updated added a menu to tablebindings test and doxygen comments
2013-02-22 09:45:26 -05:00
Aparajita Fishman
fb01ceb2a9
Formatting
2013-02-21 07:39:57 -05:00
Aparajita Fishman
109f59ab6c
Merge branch 'autosaveTableColumnsFix'
2013-02-21 07:37:09 -05:00
cacaodev
3aadc958eb
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Foundation/CPURLConnection.j
Tests/Manual/CPOutlineViewCibTest/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
2013-02-20 17:15:24 +01:00
Aparajita Fishman
3239337c1c
CPScroller fixes
...
- Get the scroller orientation from the xib.
- Fix the nonsensical calculation of _isVertical when given bounds.
- Since orientation comes from the xib, had to re-nib2cib everything to be safe.
2013-02-18 11:03:51 -05:00
cacaodev
3e942dbdbd
Added CPCib import in CPTableView.j
...
Fix warning in NSNib.j
2013-02-18 12:59:47 +01:00
cacaodev
fa008c988c
Add CPTrace.j and fix import in TableCibTest (a test using the old API)
2013-02-16 23:48:39 +01:00
cacaodev
9a472731d8
Typo, symlinks
2013-02-16 23:41:12 +01:00
cacaodev
3fd39ea0c8
Code formatting, cleaned zombie outlets, added outlets to the CPTableCellView owner
2013-02-16 19:00:44 +01:00
cacaodev
108042c190
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/CPTableView.j
Tests/Manual/TableTest/TableCibTest/AppController.j
2013-02-13 19:27:53 +01:00
Aparajita Fishman
76ff2a4492
Added a totally gnarly example of how to do complex custom data views using Xcode and bindings
2013-02-13 00:08:10 -05:00
Aparajita Fishman
fa83ba816b
Fixed missing ivar and updated url
2013-02-13 00:05:42 -05:00
Aparajita Fishman
7e635fb4ea
Change setFullBridge to setFullPlatformWindow
2013-01-27 10:31:17 +08:00
Alexander Ljungberg
b4fe13dfb1
Merge branch 'refs/heads/0.9.6'
2013-01-19 02:27:43 +00:00
Alexander Ljungberg
dfad18e047
New website location.
2013-01-19 02:11:37 +00:00
cacaodev
ce62e32dfa
Removed isa in CPTableCellView (Objj2 compat). nib2cibed all examples (Aristo2 compat).
2013-01-18 17:28:36 +01:00
cacaodev
2cc3521989
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
Tests/Manual/CPOutlineViewCibTest/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
2013-01-18 16:57:46 +01:00
Antoine Mercadal
533fd0574a
Merge branch 'master' into Aristo2
2013-01-03 14:25:42 -08:00
Antoine Mercadal
93e931e2b6
Fix Aristo2 Build process
2013-01-03 13:47:50 -08:00
imageoptimiser and Adam Howard
787dd10c69
Optimised images
2012-12-24 12:10:02 +00:00
cacaodev
cd22b29ff1
Adds a binded popup to the ViewBasedCib example.
2012-11-14 16:02:05 +01:00
cacaodev
9b03abaeef
ViewBasedCib example now uses a separate table delegate, which is the owner of table cell views.
...
It shows that the loaded view (intenal or external) has an outlet owned by the table delegate and is available for initial setup in -awakeFromCib
2012-11-13 18:52:45 +01:00
cacaodev
5b1cf49170
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-10-15 14:23:24 +02:00
Aparajita Fishman
c37783c895
Fixed table column header styling
...
- Attributes set in IB are now obeyed.
- Added accessor methods to programmatically style _CPTableColumnHeaderView.
Since we don't have an NSCell and _CPImageAndTextView is supposed to be private, it's better to have the styling methods in _CPTableColumnHeaderView.
2012-10-11 12:34:55 -04:00
Antoine Mercadal
d1c978669b
run ImageOptim on all images. Saved around 30% of original size
2012-08-24 11:48:55 -07:00
Alexander Ljungberg
31ab70d6fc
Refs #1530 . Fixed: table views could not be interacted with if they couldn't become the first responder.
2012-08-01 18:59:54 +01:00
Alexander Ljungberg
7537f4d032
Eliminate some duplicate methods.
2012-08-01 16:35:34 +01:00
cacaodev
9cbb8fd5bc
Support for external cibs (a view in an individual cib). Added such view to ViewBasedCib. Also added an example of a view created manually in the delegate
2012-07-27 20:00:00 +02:00
cacaodev
1a0434fd85
Fix action sent when an edited control is enqueued (see action log in test app).
...
A non bezeled text field is now bezeled when edited and unbezeled when editing ends - including when you hit enter (but text has to be modified, see comment in code)
2012-07-27 16:32:02 +02:00
cacaodev
0faf38a1e1
From within the delegate method, if you ask for an IB view (makeviewWithIdentifier:owner:), the view is now automatically reusable.
...
Before that, IB views were reusable only if the delegate method was not implemented.
If you create a view in code, you still need to make it reusable by calling -setIdentifier:
Woow ... now viewBasedCib loads the views x3 times faster.
2012-07-23 19:55:06 +02:00
cacaodev
4c4a707624
In CPTableCellView initializers, enforce autoresizingMask to CPViewHeightSizable. Per cocoa except in cocoa it is done when the view is added to superview.
2012-07-23 15:12:06 +02:00
cacaodev
e2d4ae4acc
viewBasedCib example: fix some labels not sized-to-fit in IB
2012-07-22 21:32:24 +02:00
cacaodev
95b7f78a5a
Sorry George.
2012-07-21 20:32:02 +02:00
cacaodev
e694f8f173
Preemptive fix (currently disabled) to force drawBackground to YES for edited text fields embedded in a data view. dependency on issue #210 .
2012-07-21 20:14:27 +02:00
cacaodev
91f2252255
Remove old import in ViewBased, use CPTrace() to log perf.
2012-07-21 09:16:43 +02:00
cacaodev
2d8681dbd4
CPOutlineViewViewBasedCibTest & TableBindings: cleanup zombie outlets & image in xib.
...
CPOutlineViewViewBasedCibTest: button expand/collapse item and tracks item state.#
2012-07-15 22:36:07 +02:00
cacaodev
0b1d67116d
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-07-14 09:35:26 +02:00
cacaodev and Aparajita Fishman
7c01f14bfe
Fix for #1593
2012-07-13 07:44:48 -07:00
cacaodev
da99b7b455
Remove temp merge files from previous commit. Added a view based table example to TableBindings
2012-07-13 16:41:57 +02:00
cacaodev
f29f39d427
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Renamed Test apps.
Conflicts:
AppKit/CPTableView.j
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.cib
Tests/Manual/TableTest/TableBindings/Resources/MainMenu.xib
2012-07-13 13:38:49 +02:00