Every repository with this icon (
Every repository with this icon (
| Description: | Web Application Framework in JavaScript and Objective-J edit |
-
2 comments Created 6 months ago by 280north#to-reviewxPlist parser fails on IE8 when there's no DTD header in XMLfrom-lighthousexI’m trying to parse a XML string (provided from xslt conversion) in IE8. It doesn’t contain DTD header, but starts directly with "<?xml version".
First problem I encountered was that Objective-J.js at line 844 removes 6 characters from the start making xml document not a xml document any more, thus I changed it to read:
XMLNode.loadXML(XMLNodeOrData.string);at this point XMLNode seemed to load my string without any problems, but it dies on the next loop:
while (((String(XMLNode.nodeName)) == XML_DOCUMENT) || ((String(XMLNode.nodeName)) == XML_XML)) XMLNode = (XMLNode.firstChild);first node (XMLNode) is XML_DOCUMENT. It’s firstChild is XML_XML. But plist is not firstChild of XML_XML but rather nextSibling.
if I set XMLNode to plist node it continues from this point without any problem.
PS: WebKit handles same xml string without any problem (tested on Chrome, Safari, nightly WebKit).
This ticket has 1 attachment(s).
Comments
-
3 comments Created 6 months ago by 280north#needanswerxBug in internet exporer when refreshing page?from-lighthousexIf I refresh or visit the page in the same tab in IE 7 (not tested on 6) I keep getting the error: "’_DOMBodyElement’ is null or not an object.". I tested to clear all cache the cache in IE and the error dissapeared for one refresh.
This ticket has 0 attachment(s).
Comments
Bug in internet exporer when refreshing page?
Yes, I’ve definitely experienced this, will look into it.
by Francisco Tolmasky
Bug in internet exporer when refreshing page?
any updates?
by Ross Boucher
BlairDuncan
Wed Jul 22 11:06:13 -0700 2009
| link
I've noticed something similar with Safari that was driving me nuts.
After modifying the code and hitting refresh, it would not finish loading. Hit refresh again and sometimes is would complete, sometimes not. Moving the cursor to the URL and hitting enter would then usually load the new page...I had been placing my .j files within a SomethingElse folder as defined in the OBJJ_INCLUDE_PATHS. Once I moved them out and just kept them loose within the application folder the pages load fine everytime.
-
3 comments Created 6 months ago by 280northFeaturexMissing functionality: plist read/writefrom-lighthousexEverything is in title. ;)
Add initWithContentsOfURL:, initWithContentsOfFile:, writeToFile:atomically: and writeToURL:atomically: in CPArray and CPDictionary would be very useful.
This ticket has 1 attachment(s).
Comments
Missing functionality: plist read/write
initWithContentsOfURL implemented for CPDictionary in the attached patch. I suppose there’s no use for initWithContentsOfFile in cappuccino, tell me if I’m wrong.
by Farcaller
Missing functionality: plist read/write
We could just alias initWithContentsOfFile to initWithContentsOfURL. Is there a reason for puting the logic in the class method rather than the init?
It would be great to see this finished up for CPArray, and with the writeTo methods (which should just send a PUT request to the URL with the contents of the plist as the body.
It would also be interesting to see asynchronous versions of these, since synchronous requests are, generally, a terrible idea in the browser.
by Ross Boucher
NSDictionary commited at farcaller/cappuccino@8ea10ab
Any ideas how to make async version and keep it cocoa way?
-
16 comments Created 6 months ago by 280north#acknowledgedxappkitxTabView add item - labels/tabs not displayedfrom-lighthousexcant get addTabViewItem:item to function, throws Uncaught TypeError: Cannot read property ’_superview’ of null
This ticket has 0 attachment(s).
Comments
TabView add item
Could you show me the code snippet?
by Francisco Tolmasky
TabView add item
var tabset=[[CPTabView alloc] initWithFrame:CPRectMake(10,10,300,300)];
var item1=[[CPTabViewItem alloc] initWithIdentifier:@"0"]; [item1 setLabel:@"test"]; [tabset addTabViewItem:item1]; var item2=[[CPTabViewItem alloc] initWithIdentifier:@"1"]; [item2 setLabel:@"test2"]; [tabset addTabViewItem:item2];[label setStringValue:[[tabset numberOfTabViewItems] stringValue]];
[contentView addSubview:tabset]; [contentView addSubview:label];by TG
TabView add item
var tabset=[[CPTabView alloc]
initWithFrame:CPRectMake(10,10,300,300)];
var item1=[[CPTabViewItem alloc] initWithIdentifier:@"0"]; [item1 setLabel:@"test"]; [tabset addTabViewItem:item1]; var item2=[[CPTabViewItem alloc] initWithIdentifier:@"1"]; [item2 setLabel:@"test2"]; [tabset addTabViewItem:item2];[label setStringValue:[[tabset numberOfTabViewItems] stringValue]];
[contentView addSubview:tabset]; [contentView addSubview:label];-----Original Message----- From: Lighthouse [mailto:support@lighthouseapp.com]
Sent: Thursday, September 04, 2008 11:41 PM
To: Tom Giannulli
Subject: [Cappuccino #10] TabView add itemby TG
TabView add item
Ah yes it’s because the tab view item doesn’t have an associated view ([item setView:myView]). I will check whether the expected behavior should be to raise an internsalinconsistencyexception or to just show nothing in the tabview.
For right now though, if you just do [item setView:[[CPView alloc] initWithFrame:CGRectMakeZero()]]] it should work though.
by Francisco Tolmasky
TabView add item
The error is solved but the tabs/labels are not displayed
by TG
TabView add item - labels/tabs not displayed
var tabset=[[CPTabView alloc] initWithFrame:CPRectMake(10,10,300,300)];
var x=@"tab1"; var y=@"tab2"; var item1=[[CPTabViewItem alloc] initWithIdentifier:x]; [item1 setLabel:@"test1"]; [item1 setView:[[CPView alloc] initWithFrame:CPRectMake(0,0,0,0)]]; [tabset addTabViewItem:item1]; var item2=[[CPTabViewItem alloc] initWithIdentifier:y]; [item2 setLabel:@"test2"]; [item2 setView:[[CPView alloc] initWithFrame:CPRectMake(0,0,200,200)]]; [tabset addTabViewItem:item2]; [tabset setTabViewType:CPTopTabsBezelBorder]; [label setStringValue:[[tabset numberOfTabViewItems] stringValue]]; [contentView addSubview:tabset];by TG
TabView add item - labels/tabs not displayed
I confirm this as well. To be on the safe side I checked on Safari and FireFox, and neither display anything. I looked through the source a bit, and couldn’t find any trickery to force it to display the labels.
by Will Larson
TabView add item - labels/tabs not displayed
Could you try setting the tabViewType earlier, like right after you create the tab view itself. Not that this wouldn’t be a bug, just trying to identify where the problem is.
by Francisco Tolmasky
TabView add item - labels/tabs not displayed
Tried your suggestion, but isn’t working for me. Here is my source:
@@@ javascript
-(void)setupTabView: (CPView)contentView { var bounds = [contentView bounds]; var frame = CGRectMake(CGRectGetMinX(bounds)+75,
CGRectGetMinY(bounds)+100, CGRectGetWidth(bounds)-150, CGRectGetHeight(bounds)-200);tabView = [[CPTabView alloc] initWithFrame:frame]; [tabView setTabViewType:CPTopTabsBezelBorder]; [tabView layoutSubviews]; [tabView setAutoresizingMask: CPViewHeightSizable | CPViewWidthSizable];
webSearchTabItem = [[CPTabViewItem alloc] initWithIdentifier:@"web"]; imageSearchTabItem = [[CPTabViewItem alloc] initWithIdentifier:@"image"]; newsSearchTabItem = [[CPTabViewItem alloc] initWithIdentifier:@"news"];
webView = [[CPView alloc] initWithFrame:CPRectMakeZero()]; imageView = [[CPView alloc] initWithFrame:CPRectMakeZero()]; newsView = [[CPView alloc] initWithFrame:CPRectMakeZero()];
[webSearchTabItem setLabel:@"Web"]; [imageSearchTabItem setLabel:@"Image"]; [newsSearchTabItem setLabel:@"News"];
[webSearchTabItem setView:webView]; [imageSearchTabItem setView:imageView]; [newsSearchTabItem setView:newsView];
[tabView addTabViewItem:webSearchTabItem]; [tabView addTabViewItem:imageSearchTabItem]; [tabView addTabViewItem:newsSearchTabItem];
//[tabView _createBezelBorder]; [contentView addSubview:tabView]; }
@@@
by Will Larson
TabView add item - labels/tabs not displayed
Sorry for formatting: http://dpaste.com/77487/ is formatted paste.
by Will Larson
TabView add item - labels/tabs not displayed
I’ve been able to narrow down the issue (and find a work around): if you add the tabView to its parent view before adding the tab items, then it works correctly (creates labels and displays the tabViewItem’s view when the tab is selected).
However, if you add the tabViewItems before adding the tabView to the parentView, then it neither creates the labels nor displays the tabViewItem’s view as appropriate.
by Will Larson
TabView add item - labels/tabs not displayed
Great reduction WIll, I think I should have a fix for this soon.
by Francisco Tolmasky
TabView add item - labels/tabs not displayed
by Francisco Tolmasky
TabView add item - labels/tabs not displayed
The issue here is that we delay creating the tab view borders and items as long as possible, so that we prevent unnecessarily loading images that we may not need.
As a side effect, there’s a view we haven’t created yet, and we’re just sending messages to nil. This is why it’s not working. There’s also a related bug with trying to change a view out from under it later.
Essentially, the way this all works needs to be redesigned to work more like the menu system. Since it isn’t a trivial change, I’m moving it off 0.5.2. I’m also not planning on committing a stop gap measure, since the workaround is noted above. Just add items after adding the tab view to your content view.
by Ross Boucher
TabView add item - labels/tabs not displayed
I’ve been able to reproduce this in 0.7b.
Here is the sample code :
http://gist.github.com/83994by Thomas Balthazar
Didn't I already fix this?
http://github.com/nciagra/cappuccino/commit/f4aa7032f10107858a75971b6a83560bb1d09cd9
-
2 comments Created 6 months ago by 280northappkitxMain Menu Separator Orderingfrom-lighthousexThe current implementation of the main menu does not correctly order the menu items in relation to the separator.
This ticket has 0 attachment(s).
Comments
-
10 comments Created 6 months ago by 280north@boucherxfoundationx-hash is broken on CPArrayfrom-lighthousexIt breaks the contract that two arrays which are -isEqual: also need to report the same -hash value.
Patch and tests included
It’s also the same way that GnuStep and Cocotron implement this - I was quite surprised how simple they implemented it.
:)
This ticket has 1 attachment(s).
Comments
-hash is broken on CPArray
Why do both array’s need to return the same hash value? That doesn’t seem to be documented anywhere in the Cocoa docs.
This code seems incredibly dangerous to me. You’re essentially saying that all kinds of arrays that have nothing to do with each other could be considered equal. This will break anything that uses hash as a unique identifier (for example, KVO/Bindings, and I’m sure other code in Cappuccino).
by Ross Boucher
-hash is broken on CPArray
I spoke before I understood what I was talking about.
From the documentation for hash:
@"If two objects are equal (as determined by the isEqual: method), they must have the same hash value. This last point is particularly important if you define hash in a subclass and intend to put instances of that subclass into a collection."
Our implementation of hash does not behave this way. Perhaps we should consider changing our hash to become address, and re-implementing hash the Cocoa way?
by Ross Boucher
-hash is broken on CPArray
I’m not sure I understand you correctly, -[CPObject hash] does return __adress, I haven’t checked all the other objects, but all objects who redefine -isEqual: need their own implementation that matches the contract.
The one which I provided for CPArray - and I checked it against the two other Cocoa implementations I know, which do it the same way. (Also it makes sense: The Implementation needs to be FAST, and it needs to be the same when two objects are -isEqual:
I also checked against some examples on Cocoa and it behaves the same way.
by Martin Häcker
-hash is broken on CPArray
My point was that -hash works differently in Cappuccino than in Cocoa (something I previously had not realized).
We need access to __address as a method, which is what hash has been doing for us. To make -hash actually correct, we’ll need to add -address and update all of the cappuccino code that relies on hashes being globally unique.
by Ross Boucher
-hash is broken on CPArray
Too late to finish sentences...
The one which I provided does fit the contract and also behaves the same way that the others do.
by Martin Häcker
-hash is broken on CPArray
Yes, but it breaks parts of Cappuccino that expect the current behavior. For example, KeyValueObserving and CPWindow both rely on the value of -hash as a unique index into various data structures.
by Ross Boucher
-hash is broken on CPArray
Oh damn.
I just had a look around in the source and lots of objects like CPDictionary, CPData, CPDate and CPNull don’t overide -hash but should. (And most should probably also overide isEqual:)
Uh oh....
Yes, this is going to take some work.
by Martin Häcker
-hash is broken on CPArray
Can’t resist...
As a good person once said: In God we trust - for everything else we have UnitTests.
:)
by Martin Häcker
-
1 comment Created 6 months ago by 280north#needtestx@tlrobinsonxCPWebView Doesn't Play Well With CPTabViewfrom-lighthousexThis ticket has 0 attachment(s).
Comments
-
4 comments Created 6 months ago by 280north#needtestxCPToolbarItem setEnabled:NO does not disable the toolbar itemfrom-lighthousexcalling setEnabled:NO appears to have no effect on the CPToolbarItem. It should cause the toolbar item to be rendered as disabled (or semi-opaque) and should prevent the toolbar item’s selector from being called.
This ticket has 0 attachment(s).
Comments
CPToolbarItem setEnabled:NO does not disable the toolbar item
I’ve had a bit of a look at the code and am wondering if the ’reloadToolbarItems’ method in _CPToolbarView is the place to check for ’isEnabled’. The code here seems to be creating views for each of the toolbar items and assigning targets and actions etc - perhaps this should be modified to check for ’isEnabled’?
Is this the right place to do this?
How often is this method called? (i.e. is it likely to be called again if I change the state of a toolbar item to disable it). I’ll dig around a little more tomorrow.
by Jake MacMullin
CPToolbarItem setEnabled:NO does not disable the toolbar item
Thanks for your bug report.
Do you think you could provide us with sample code that illustrates this bug?
You could upload a sample AppController.j here or more simply paste it on http://gist.github.com and link it here.
It would definitely help to solve it quickly.by Thomas Balthazar
BlairDuncan
Sun Oct 04 18:31:05 -0700 2009
| link
Not sure how to upload a sample AppController.j file but this I've pasted below a simple sample showing a button being created as a toolbarItem with setEnabled:NO when created.
var ButtonToolbarItemIdentifier = @"ButtonToolbarItemIdentifier";
@implementation AppController : CPObject { }
(void)applicationDidFinishLaunching:(CPNotification)aNotification { var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask] var contentView = [theWindow contentView];
[theWindow orderFront:self];
var toolbar = [[CPToolbar alloc] initWithIdentifier:@"MyToolbar"]; [toolbar setDelegate:self]; [theWindow setToolbar:toolbar]; }
(CPArray)toolbarAllowedItemIdentifiers:(CPToolbar)aToolbar { return [ButtonToolbarItemIdentifier]; }
(CPArray)toolbarDefaultItemIdentifiers:(CPToolbar)aToolbar { return [ButtonToolbarItemIdentifier]; }
(CPToolbarItem)toolbar:(CPToolbar)aToolbar itemForItemIdentifier:(CPString)anItemIdentifier willBeInsertedIntoToolbar:(BOOL)isBeingInsertedIntoToolbar { if(isBeingInsertedIntoToolbar) {
} else {var toolbarItem = [[CPToolbarItem alloc] initWithItemIdentifier:anItemIdentifier]; [toolbarItem setTarget:self]; [toolbarItem setMinSize:CGSizeMake(32.0, 32.0)]; [toolbarItem setMaxSize:CGSizeMake(32.0, 32.0)]; switch(anItemIdentifier) { case ButtonToolbarItemIdentifier: var image = [[CPImage alloc] initWithContentsOfFile:@"Resources/cappuccino.png" size:CGSizeMake(32.0, 32.0)], alternateImage = [[CPImage alloc] initWithContentsOfFile:@"Resources/spinner.gif" size:CGSizeMake(32.0, 32.0)]; [toolbarItem setLabel:@"bling bling"]; [toolbarItem setImage:image]; [toolbarItem setAlternateImage:alternateImage]; [toolbarItem setTarget:self]; [toolbarItem setAction:@selector(doButton:)]; [toolbarItem setEnabled:NO]; break; }
} return toolbarItem; } @endvar toolbarItemIndex = [aToolbar._itemIdentifiers indexOfObject:anItemIdentifier]; var toolbarItems = [aToolbar items]; var toolbarItem = toolbarItems[toolbarItemIndex];
Thanks alot for the test application! I have committed it here http://github.com/stevegeek/CappuccinoBugs to help devs quickly find the problem.
-
1 comment Created 6 months ago by 280north#needtestxnewlines can break copy/pastefrom-lighthousexThis ticket has 0 attachment(s).
Comments
-
1 comment Created 6 months ago by 280north#needtestx@tolmaskyxloader only works with xml plists (not 280 north plists)from-lighthousexWe assume plists are in the xml format, and thus use the .xml property of the response. The answer is more complex though, because Firefox has trouble reading plists due to their dtd, thus we force an override of mime type to text/xml with all plists, making it difficult to determine which plists are xml and which aren’t. Perhaps by examining the text response.
This ticket has 0 attachment(s).
Comments
-
2 comments Created 6 months ago by 280north#to-acknowledgexfrom-lighthousexrake test silently fails on syntax errors in teststoolsxIn this test
@@@ objj - (void) testCanSerializeJSONWithNulls {
[self assert:"null" equals:[CPString JSONFromObject: null ] message:"1"]; [self assert:null same:[[CPString JSONFromObject: null ] objectFromJSON] message:"2"]; [self fail:[[CPString JSONFromObject: [ null ] ]]; [self fail:"[[CPString JSONFromObject: [null] ]"]; [self assertFalse:true]; [self assert: [null] same:[[CPString JSONFromObject: [null] ] objectFromJSON] message:"3"]; [self assert: {foo:null} same:[[CPString JSONFromObject: {foo:null} ] objectFromJSON] message:"4"];} @@@
the line [self fail:[[CPString JSONFromObject: [ null ] ]]; makes the parser barf and the tests just don’t execute - but no error is shown.
This ticket has 0 attachment(s).
Comments
rake test silently fails on syntax errors in tests
by Thomas Balthazar
The Line indicated to have a problem is missing a closing ] . The parser does warn of this, however, if this ']' is added then the following error happens:
http://gist.github.com/211646Interestingly however if used in an application as in :
http://github.com/stevegeek/CappuccinoBugs/tree/master/i0020/
then there is no problem. -
4 comments Created 6 months ago by 280northCertain regular expressions break the parserfrom-lighthousexHi there,
I am trying to use Douglas Crockfords javascript json implementation at http://www.JSON.org/json2.js
(I am trying to reproduce another bug in the json component of cappuccino)
The problem is, that when @import this file with @import "json2.js" my unittests fail with this error message
json2.js
Expected ’]’ - Unterminated message send or array. OBJJ EXCEPTION: Expected ’]’ - Unterminated message send or array.
Name: OBJJParseException Message: undefined File: undefined Line: undefinedI haven’t yet reduced this to why it fails - but I suspect some of the more complex Regexes in there might be the source of the problem.
Please fix it!
Regards,
MartinThis ticket has 0 attachment(s).
Comments
@import "json2.js" breaks
I’d like to add that just copying the source in a obj-j file also breaks the interpreter - it seems the parser somehow gets confused on the correct javascript code in that file.
by Martin Häcker
tlrobinson
Mon May 04 18:03:53 -0700 2009
| link
There are known problems with certain regexes confusing the Objective-J parser.
A workaround is to use the "new RegExp()" form of creating regular expressions (properly escaping \ " ' etc). Alternatively you could include json2.js using a
tlrobinson
Sat Jun 06 14:16:11 -0700 2009
| link
We now include json2.js in Objective-J so I'm changing this title to the reflect the more general problem with regexes breaking the Objective-J parser.
-
0 comments Created 6 months ago by 280northFeaturexAdd identifier (name/id) to CPFlashViewfrom-lighthousexCPFlashView should have some sort of identifying attribute (name/id values) to permit accessing the file.
First reported in this thread:
http://groups.google.com/group/objectivej/browse_thread/thread/db720baa4d6eec19
This ticket has 0 attachment(s).
Comments
-
3 comments Created 6 months ago by 280north#to-reviewxFeaturexCPFlashView should support adding parameters and Flash variablesfrom-lighthousexThis was mentioned in ticket #112, but ticket #112 is about 2 different things, so I thought it was a good thing to split them.
This ticket has 0 attachment(s).
Comments
CPFlashView should support adding parameters and Flash variables
I’m working on adding this functionality in.
by Jesse Ross
CPFlashView should support adding parameters and Flash variables
http://github.com/jross/cappuccino/commit/2f6565a5faf047d92a0e46dd0fc83858a4e1f066
http://github.com/jross/cappuccino/commit/7e3ac4824882cedac5a8121a4a716e016b3acdc7 http://github.com/jross/cappuccino/commit/a357dc294f372ea6c19a249e2b7db57fc35cfadaby Jesse Ross
CPFlashView should support adding parameters and Flash variables
- http://github.com/jross/cappuccino/commit/2f6565a5faf047d92a0e46dd0fc83858a4e1f066
- http://github.com/jross/cappuccino/commit/7e3ac4824882cedac5a8121a4a716e016b3acdc7
- http://github.com/jross/cappuccino/commit/a357dc294f372ea6c19a249e2b7db57fc35cfada
by Jesse Ross
-
9 comments Created 6 months ago by 280north#needanswerx@tolmaskyxPartial, working CPScanner and CPCharacterSet.from-lighthousexCPScanner and CPCharacterSet are useful in many situations, but are missing. Attached is a skeleton implementation of both of them that, while not implementing all methods of the corresponding Cocoa classes, is already useful.
See the comments in the code for more details.
This ticket has 1 attachment(s).
Comments
Partial, working CPScanner and CPCharacterSet.
Sorry I haven’t gotten around to reviewing/checking this in yet, I’ll try to do so tomorrow (today).
by Francisco Tolmasky
Partial, working CPScanner and CPCharacterSet.
by Francisco Tolmasky
Partial, working CPScanner and CPCharacterSet.
Hey millenomi, could you do a pass over this and make it so it conforms to our new style guidelines ( http://cappuccino.org/contribute/coding-style.php ). If not I could do so, but I figure you’d prefer to do it yourself. Also, before we get this in we’ll need you to sign a contributor agreement, which we should hopefully have by the end of today or tomorrow.
by Francisco Tolmasky
Partial, working CPScanner and CPCharacterSet.
Any update on this?
by Ross Boucher
Partial, working CPScanner and CPCharacterSet.
This patch would be very useful with some trivial fixes in the following methods of CPScanner.
1/
-(BOOL)_performScanWithSelector:withObject:into: (see comments in the code about how to handle references)2/
- (CPString) scanUpToString:(CPString)s should be rather - (BOOL) scanUpToString:(CPString)s intoString:(CPString)value and set the captured string into value (value is a reference).millenomi, we need you, please come back to finish this important contribution.
by cacaodev
CPCharacterSet and CPScanner are in this repository : http://github.com/cacaodev/cappuccino/tree/master
It's mainly working. Missing methods are included in the file in case you want to finish the job.
I know this sounds obnoxious, but one of the things needed here is some style improvements. In particular, spacing is pretty inconsistent, as are brackets, same line returns with single if statements, some more minor stuff. Accessing window explicitly is generally not a great idea (window._CPCharacterSetTrimAtBeginning = ...).
Francisco can probably comment better on more technical concerns.
I fixed the same line return (or anything) with single line statement. Can you explain to me what is the problem with spacing and brackets because i don't see. I'm following the rule "one bracket = one line" except maybe for one while loop. Also accessing global from window seems to be a workaround done by the original author (millenomi). He says that globals are not exposed to other files. Maybe because globals have to be at the beginning of the file ?
Well, for example, many lines use 2 spaces for a tab, while others use 3, and still others use 4. Some lines are not properly indented at all. Cappuccino prefers that all code be properly intended, using 4 spaces in place of a tab.
Global variables are accessible outside of the scope of the file, var'd variables are not. Putting a var indicates file level scope, while leaving the var out will make it global.
I'm also not sure what those two variables are for. They have an underscore, indicating that they aren't meant to be "public", and yet they also need to be global? I don't see a corresponding NS* in the Cocoa docs, but maybe I just missed it.
-
1 comment Created 6 months ago by 280northappkitxsetAllowsMultipleSelection: and setSelectable: do not allow multiple selections in CPCollectionViewfrom-lighthousexComments
setAllowsMultipleSelection: and setSelectable: do not allow multiple selections in CPCollectionView
toggleIndexInSelection:
http://github.com/camwest/cappuccino/commit/04abd8bad1f3ab870e7d01287de04c7434aebb6e
selectRangeFromIndex:toIndex:
http://github.com/camwest/cappuccino/commit/8a471cc838c029fd0c90e1b13012214a720930e9
Minor Code Tweaks:
http://github.com/camwest/cappuccino/commit/e674dbd99629504502f7c3ddf974ce7a944cdb5e
http://github.com/camwest/cappuccino/commit/7bc879b20d1e4627a1cc178cc4c221c94377bf7bby Cameron Westland
-
1 comment Created 6 months ago by 280north#to-reviewxappkitxsetAllowsMultipleSelection: and setSelectable: do not allow multiple selections in CPCollectionViewfrom-lighthousexThis ticket has 0 attachment(s).
Comments
-
0 comments Created 6 months ago by 280northappkitxFeaturexImplement CPPopUpButton's -sizeToFitfrom-lighthousex -
5 comments Created 6 months ago by 280north#to-acknowledgex@boucherxappkitxCPTextField focus doesn't work through different windowsfrom-lighthousexThe new focus rings are great. But, if you have a text field in one window (for example, the menu bar), and another text field in another window, there is an issue. Focus the first text field in the menu bar. Then, while it is still focused, focus the second text field in the other window. Both of them will now be "focused", with focus rings, and neither (sometimes one) will allow input.
This ticket has 1 attachment(s).
Comments
CPTextField focus doesn’t work through different windows
Attached test case.
by nciagra
CPTextField focus doesn’t work through different windows
Temporary fix committed.
by Ross Boucher
CPTextField focus doesn’t work through different windows
by Ross Boucher
Commited to http://github.com/stevegeek/CappuccinoBugs , however the behaviour seems to now have been corrected. Unless this is only the temporary fix mentioned above.
-
1 comment Created 6 months ago by 280north#to-reviewxappkitxCPControl : implement setTootTip:from-lighthousexCould be something like this:
@@@ javascript
-(void)setToolTip:(CPString)aToolTip {
if (_toolTip == aToolTip) return; _toolTip = aToolTip;if PLATFORM(DOM)
_DOMElement.title = aToolTip;endif
}
@@@
Maybe we need test cases for critical situations like when a view with a toolTip displayed is removed from the superview ...
This ticket has 0 attachment(s).
Comments
-
6 comments Created 6 months ago by 280north#to-reviewx@boucherxfoundationxCPPredicate suitefrom-lighthousexAlmost complete except:
- predicateWithFormat: > relies on CPScanner - Some new 10.5 methods - Some functions in CPExpression_function.j - MATCHES[d] (regex match diacritic insensitive) - expressions constants are not castedNeeds a lot of testing. A basic test case will follow.
This ticket has 5 attachment(s).
Comments
CPPredicate suite
Very basic Test case for CPPredicate.
Creates various CPExpression (constant, keypath, function, aggregate)
Creates a CPCompoundPredicate from 2 CPComparisonPredicate
Filters an array with the predicate.by cacaodev
CPPredicate suite
Improved version.
- fixed bugs in CPComparisonPredicate evaluation for strings - Support for CPMacthPredicateOperatorType (javascript regex) - Partial support for CPDiacriticInsensitive option. Not covering all diacritics. - cleaned code in evaluation of compound predicates. - Added aggregate expressionComing next: unionset, minusset, subquery expressions. (10.5 new methods in NSPredicate).
Feel free to implement predicateWithFormat: . We need a parser for that so it could be CPScanner or another way to parse (lex ?).
I will post a ojunit test later if needed.
by cacaodev
CPPredicate suite
This is the last version with a lot of code style cleaning.
Also supports for unionset, intersectset, minusset.
predicateWithFormat: still missing.These are raw files are in a zip. I can also give you a patch against Foundation but anyway you will have to add import directives in Foundation.j yourself because I’m not sure what’s the right way.
Included: CPPredicateTest.j importing CPPredicate from Foundation.
If you have any comments, even code style, I prefer that you post it bellow.
by cacaodev
CPPredicate suite
An updated version of CPPredicate & al with a test case have been pushed into my fork.
http://github.com/cacaodev/cappuccino/tree/master
by cacaodev
CPPredicate suite
Please forget the previous comment.
Here is the commit url in my fork:
http://github.com/cacaodev/cappuccino/commit/6ecc557abb06a21f044778bc3a114d1f2ad8c1c4And attached is a new patch matching this commit:
by cacaodev
Added documentation for CPPredicate, CPComparisonPredicate, CPCompoundPredicate and CPExpression.
-
0 comments Created 6 months ago by 280north#to-acknowledgexCPEvent's buttonNumber is not fully implementedfrom-lighthousexThe buttonNumber message returns the value of _buttonNumber, which doesn’t exist in the CPEvent class.
Looking at mouseEventWithType, I notice that it probably lacks a buttonNumber param.
This ticket has 0 attachment(s).
Comments
-
0 comments Created 6 months ago by 280northappkitxFeaturexMenu Bar Items Should Respond To MouseMoved Eventsfrom-lighthousexNot sure how difficult this would be, but it would be very cool if menu bar items could activate if the user moves the mouse over them when the menu bar is currently active. Like in Cocoa.
This ticket has 0 attachment(s).
Comments
-
0 comments Created 6 months ago by 280northappkitxFeaturexPopUpMenu Submenus need to be implementedfrom-lighthousexPretty self explanatory, submenus for pop up menus need to be implemented.
This ticket has 0 attachment(s).
Comments
-
Having a semi-transparent CPToolbar, CPPopUpButton button and such to go along with the HUD windows will be great.
This ticket has 0 attachment(s).
Comments
-
0 comments Created 6 months ago by 280north@tolmaskyxFeaturexfunction args should come before ivars in the scope chainfrom-lighthousex -
3 comments Created 6 months ago by 280northFeaturexNeed for a CPOpenPanelfrom-lighthousexIt would be useful to have an implementation of NSOpenPanel in Cappuccino. I can see two scenarios where they would be useful.
One is to let the user select a file on their local file system. The app could upload the file to a server and then make it available to the user.
Or the panel could be used to select a file on a remote server. If the user has a remote library of files, like 280 Slides does, this would be a way to select one of these files for opening.
This ticket has 0 attachment(s).
Comments
Need for a CPOpenPanel
This is a challenging task. The first goal is essentially impossible, at least, sort of.
Web apps can’t talk to the native file system, and that isn’t likely to change in the near future. The only exception is using the "File Upload" mechanism (input type="file").
We do need to build support for this into Cappuccino (we have it in 280 Slides, and have the sample code in our gist pastebin). However, beyond that, there’s essentially nothing we can do with respect to local file system files.
As for a generic open panel for remote server files, this is a worthwhile goal, but it isn’t obvious how it would work. The interaction is very server component specific. How do I get a list of available files? Do I support folders? Are there previews for these files available? Metadata?
It may be that we’ll make a set of default assumptions, built a somewhat generic looking open panel, and then see where it takes us, but right now I think the project is better served by focusing on slightly more generic tasks (specifically ones that don’t require us to worry about server interaction).
All that being said, if someone wants to volunteer to work on this, then that’s great. I’m happy to think things through with someone.
We can also consider releasing the 280 Slides open panel as sample code. It would not be directly reusable (its fairly specifically oriented towards slides), but it would be a reasonable starting point for anyone.
by Ross Boucher
Need for a CPOpenPanel
The Import Button on the 280slides.com does not seem to work for Opera.
by Thrinz
-
5 comments Created 6 months ago by 280north#acknowledgedx@tolmaskyxappkitxCPSplitView doesn't honor splitView:constrainMinCoordinate:ofSubviewAt: when resizing windowfrom-lighthousexIf I have the following method in a CPSplitView delegate:
@@@ - (int)splitView:(CPSplitView)splitView constrainMinCoordinate:(int)minCoord ofSubviewAt:(int)index {
if (index == 0) { return 200; } else { return minCoord; }} @@@
it correctly keeps the subview at index 0 from ever being less than 200 pixels wide when moving the splitter around.
But if I resize the window and make the window smaller, the subview does get resized with a width less than 200 pixels...
I added a log message to the above method to check whether it ever gets called. When resizing the window, the method never gets called. It gets called plenty when moving the splitter.
This ticket has 1 attachment(s).
Comments
CPSplitView doesn’t honor splitView:constrainMinCoordinate:ofSubviewAt: when resizing window
The docs on Apple’s page say the following:
This method is invoked before the NSSplitView begins tracking the cursor to position a divider. You may further constrain the limits that have been already set, but you cannot extend the divider limits. proposedMin is specified in the NSSplitView’s flipped coordinate system. If the split bars are horizontal (views are one on top of the other), proposedMin is the top limit. If the split bars are vertical (views are side by side), proposedMin is the left limit. The initial value of proposedMin is the top (or left side) of the subview before the divider. offset specifies the divider the user is moving, with the first divider being 0 and going up from top to bottom (or left to right).
So it sounds like it should only be called during repositioning of the divider. Could you possibly do a test against Cocoa to see whether this is actually the case?
by Francisco Tolmasky
CPSplitView doesn’t honor splitView:constrainMinCoordinate:ofSubviewAt: when resizing window
Ok, I wrote a little cocoa app and this method does get called when the window is resized as well as when the divider is repositioned.
I attached the project if you care to see for yourself...
by Patrick Crosby
CPSplitView doesn’t honor splitView:constrainMinCoordinate:ofSubviewAt: when resizing window
Cool, I’ll try to fix this tomorrow then
by Francisco Tolmasky
CPSplitView doesn’t honor splitView:constrainMinCoordinate:ofSubviewAt: when resizing window
This hasn’t been fixed in 0.7b yet.
Here is a test case :
http://gist.github.com/83999by Thomas Balthazar
http://github.com/stevegeek/CappuccinoBugs/tree/master/i0041/ I have commited the test here, and I do not see the problem anymore
-
5 comments Created 6 months ago by 280north#needtestx@tolmaskyxCPToolbaritems don't alternate their icon when pressing labelfrom-lighthousexThe ’normal’ behavior of a Cocoa/Mac toolbar when clicking a toolbar item on it’s label is to alternate the corresponding icon/image, giving feedback to the user. This does not happen yet in Cappuccino.
I have quickly glanced over the code of CPToolbarItem and saw that both the view (the image) and the label are both set to the same target and action. Resulting in the image not ’seeing’ the label being pushed.
a strategy could be to wrap the target and action call and within the wrapper make sure to also ’press’ the image when only the label is clicked.
This ticket has 0 attachment(s).
Comments
CPToolbaritems don’t alternate their icon when pressing label
Invalid.
Take a look at the flickr demo
by Stephan Eggermont
CPToolbaritems don’t alternate their icon when pressing label
I’ve looked at the flickr demo, 280slides and at the behavior of the Cocoa toolbar in Pages and other Apple apps.
When you only click on the label of an CPToolbarItem, you don’t see any feedback in the form of the image button going down as if being pressed.
You can even see in the cocotron sources that their implementation of the toolbar behaves exactly the way as in cocoa. (i.e. with the feedback on the image/icon)
So i don’t know why you give me such a short description and redirecting me to the flickr demo. Could you elaborate on this?
(tested under FF and Safari)
by Redmar
CPToolbaritems don’t alternate their icon when pressing label
Sorry, clicking on the label doesn’t show the alternate image. It doen’t have anything to do with the target and action though, which should be the same.
by Stephan Eggermont
CPToolbaritems don’t alternate their icon when pressing label
It doen’t have anything to do with the target and action though, which should be the same.
It does. Implementation wise. ATM the internals of a toolbaritem are that they contain two duplicate targets and actions but on the outer side, the interface, it only has one target and action.
But by internally using 2 pairs of target/actions you can never capture in the image if the label is pressed because it just fires it’s own target and action.
by Redmar
CPToolbaritems don’t alternate their icon when pressing label
Thanks for your bug report.
Do you think you could provide us with sample code that illustrates this bug?
You could upload a sample AppController.j here or more simply paste it on http://gist.github.com and link it here.
It would definitely help to solve it quickly.by Thomas Balthazar
-
0 comments Created 6 months ago by 280northFeaturexSupport Rich Text copy/pastefrom-lighthousex -
1 comment Created 6 months ago by 280northFeaturexImplement revertFromSaved:from-lighthousexThis ticket has 0 attachment(s).
Comments
-
2 comments Created 6 months ago by 280north#to-reviewx@tolmaskyxappkitxCPFlashView <embed> and <object>from-lighthousexCurrently, CPFlashView orders its elements as the following:
DOMElement.appendChild(DOMObjectElement);
DOMElement.appendChild(DOMEmbedElement);The comment above these lines indicates that this is to maintain compatibility with IE. However, Ross and I agree that this seems incorrect. I’m not sure what the proper way to deal with IE is, but I have personally always seen the embed as a child of the object, not a sibling:
DOMElement.appendChild(DOMObjectElement);
DOMObjectElement.appendChild(DOMEmbedElement);This ticket has 0 attachment(s).
Comments
CPFlashView and
I’ve started some tests on this ticket.
Here are the results of my tests :The flash is correctly displayed in IE7 with the elements ordered as follow :
DOMElement.appendChild(DOMEmbedElement);
DOMElement.appendChild(DOMObjectElement);
I agree that the embed tag should be a child of the object tag.
Interesting infos can be found here here :
http://www.alistapart.com/articles/flashembedcagematch/So I tried to order the elements like this :
DOMElement.appendChild(DOMObjectElement);
DOMObjectElement.appendChild(DOMEmbedElement);
But IE7 returns the following error : Invalid argument line 572 Char 5, which corresponds to this line :
DOMObjectElement.appendChild(DOMEmbedElement);
What do you guys think about it?
What should we do?by Thomas Balthazar
-
2 comments Created 6 months ago by 280north#acknowledgedx@tlrobinsonxTextMate bundle doesn't recognize CPCollectionViewfrom-lighthousexPretty minor thing, but I just noticed it. Thanks.
This ticket has 0 attachment(s).
Comments
TextMate bundle doesn’t recognize CPCollectionView
by Francisco Tolmasky
-
1 comment Created 6 months ago by 280north#acknowledgedx@tlrobinsonxSpace in Path Name for Bakefrom-lighthousexI have the following as the path in bakefile
"path" : "/Users/xxxx/Documents/Code/Javascript Projects/Cappuccino/ testapp/testapp"
i also tried
"path" : "/Users/xxxx/Documents/Code/Javascript\ Projects/ Cappuccino/testapp/testapp"with no luck...
The error i am getting is the following
2008-11-02 19:14:49.469 Cappuccino [warn]: exec: rsync: link_stat "/
Users/xxxx/Documents/Code/Javascript" failed: No such file or
directory (2)This ticket has 0 attachment(s).
Comments
-
1 comment Created 6 months ago by 280north#acknowledgedx@tolmaskyxAdd references to Objective-J @reference?from-lighthousexIt would look something like this:
- (void)myMethod:(ref CPString)aString
{
aString("new value")
}
[Object myMethod:@reference(myString)];
@dereference would allow you to talk to it:
[@dereference(stringReference) length]
Essentially, @reference(X) is a macro that becomes
function (value) { this.set = function(x) { X = x; } this.get() { return x; } }
@dereference(X) is a macro that becomes
X.get()
More or less.
This ticket has 0 attachment(s).
Comments
- (void)myMethod:(ref CPString)aString
{
aString("new value")
-
2 comments Created 6 months ago by 280north#acknowledgedxImprove the parser to detect syntax errorsfrom-lighthousexI can throw a lot of invalid syntax into a .j file and it will run without even a warning. Surely syntax errors should be of the highest possible severity?
It’s quite scary to think that a well meaning parser can discard things I write in my source code without even mentioning it.
It also makes me wonder if the parsing could be a lot more efficient.
Would you guys like some input in this area? I’m not an expert but I know a little bit about LALR(1) grammars and lexical analysis (another area of the source that looks like it could use some improving - long piped regexes are generally slower than checking several smaller regexes and switching states).
Clearly it’s a hugely complex area but it’s certainly something that needs to be as close to 100% spot-on as possible :)
This ticket has 0 attachment(s).
Comments
Improve the parser to detect syntax errors
By all means take a stab at it.
by Francisco Tolmasky
-
More CRUD or Information oriented View over CPCollectionView to be backed by a Model
This ticket has 0 attachment(s).
Comments
-
3 comments Created 6 months ago by 280north#needanswerxObjective-J preprocessor chokes on certain RegExp literalsfrom-lighthousexThis ticket has 0 attachment(s).
Comments
Objective-J preprocessor chokes on certain RegExp literals
(from [abbbc6e]) Replaced regex literals with RegExp objects, due to bug [#117] http://github.com/280north/cappuccino/commit/abbbc6e8f09b9bee14f7b794c83712492ee1cffd
by admin (at 280north)
Objective-J preprocessor chokes on certain RegExp literals
Yes it does
by Francisco Tolmasky
-
3 comments Created 6 months ago by 280north#needanswerxappkitxCPWindow setMinSize does not set overflow properlyfrom-lighthousexCPWindow includes utilities to setMinSize and setMaxSize. While these seem to work correctly, when the user resizes the window to less than it’s minimum size, the overflow of the window/contentView should be changes to add browser scroll bars into the window.
This ticket has 0 attachment(s).
Comments
CPWindow setMinSize does not set overflow properly
CPWindow can not (or at least should not be able to) be resized smaller than its minimum size, or larger than its maximum size. I’m not sure what you’re proposing.
by Ross Boucher
CPWindow setMinSize does not set overflow properly
Sorry, I meant to specify this is relating only to the bridge window. By default, you remove the browsers scroll bars. However, I feel that the bridge window’s setMinSize should implement special behavior to add the browser’s scroll bars back if the user resizes their browser to less than the minimum size (which is not prevented by setMinSize).
by nciagra
-
2 comments Created 6 months ago by 280north#to-acknowledgexappkitxCan't organize Code into subfoldersfrom-lighthousexHi there,
I just tried moving the app delegate into a subfolder (Source) as a first step to get all the source out of the root of the project (organisation is good).
This doesn't seem to work however. When I move the AppController.j (which contains my app delegate) into the subfolder, and load it in main.j like this
-- snip -- @import "Source/AppController.j" -- snap --
I see from the output in the Safari Debugger that it does get loaded. However after that main does not get called.
-- snip -- function main(args, namedArgs)
{console.log("before main") CPApplicationMain(args, namedArgs); console.log("after main")} -- snap --
i.e. I don't get any output there.
Moving other classes into Source doesn't seem to work either.
I completely don't have any ideas why this might be happening. Perhaps it's something with paths being interpreted relative where they shouldn't, but ... :)
So, please fix it.
Regards,
MartinThis ticket has 0 attachment(s).
Comments
We had similar problem in WebKit nightly but we were able to fix it by creating Info.plist file in the directory( in your case Source) without any key/value pairs to circumvent the problem. Which browser are you using?
I would love to see this fixed, too. Subdirectories work in development, but not after building the app for Release.
In the meantime, here's a fix:
- Edit the project's Rakefile. Add your subdirectories to t.sources ("Classes/*.j")
- Add the subdirectories to OBJJ_INCLUDE_PATHS in index.html: ["Frameworks", "Classes"]
- In your code, import your classes without the directory name: @import "MyClass.j"
Finally, "rake CONFIG=Release" and you'll have a packaged app that loads the files properly.
-
2 comments Created 6 months ago by 280north#needanswerxMultiple non Javascript-native instance variable declarations per-line don't workfrom-lighthousexCappuccino appears to have a problem with having instance variables declared in a class where the type is non Javascriopt-native and you specify multiple variable declarations per line. For example:
@@@ @implementation NavigationBar : CPView {
int _type, _fieldPadding; id _backButton, _forwardButton;} . . . @@@
will result in a ’backButton not defined’ error the first time backButton is referenced at runtime. There are no problems accessing either type or fieldPadding, which are int’s. It also doesn’t appear to matter whether the offending variables are declared as ’id’s or some other non Javascript-native type.
Changing this to:
@@@ @implementation NavigationBar : CPView {
int _type, _fieldPadding; id _backButton; id _forwardButton;} . . . @@@
alleviates the problem.
This ticket has 0 attachment(s).
Comments
Multiple non Javascript-native instance variable declarations per-line don’t work
This is actually due to us not supporting the comma notation for multiple declarations of the same time. It’s surprising that any of them worked.
by Francisco Tolmasky
-
This is likely a bug in _CPImageAndTitleView. It's triggered by calling [CPMenu setMenuBarVisible:YES] and then [CPMenu setMenuTitle:"foo"]. Reverse the order, and the shadow is the correct color.
Comments
-
0 comments Created 6 months ago by dwt\R as key equivalent on CPButton doesn't get through nib2cibFeaturexHi there,
I've set a button in a form as the default button for that window by setting it's key-equivalent to \R in IB. However, after converting the xib with nib2cib, the button is not the default button anymore.
Regards,
MartinComments
-
1 comment Created 6 months ago by cacaodevDisabled CPMenuItem should have gray textFeaturexCurrently, a CPMenuItem can be disabled with [item setEnabled:NO] but it's font color remains black instead of gray.
Comments
Fixed. It was just a wrong color name (dark gray instead of light gray).
commit : http://github.com/cacaodev/cappuccino/commit/75781b506a6a83802d61f592218a3bff67c6d309
-
When scrolling a CPWebView that is inside a CPScrollView brief artifacts will appear if there are any views that are out of the scrolling area and the webview should be clipped by when scrolling. This issue has only been noticed in FF for Windows and Linux and does not have any problems in FF for OS X.
Here is a video of the bug: http://www.youtube.com/watch?v=08VN3-S2kgI
The video shows a brief glimpse of the problem, but due to the frame rate does not show how prevalent the artifacts really are.
This was all using 0.6 code. I will let you know if the problem still persists when I move to 0.7b.
Testing code: http://gist.github.com/110148
Comments
-
@import "NonExistingFile.j" sends ojtest into an infinite loop / recursion
0 comments Created 5 months ago by dwtWell it does. This totally braks rake test, and also calling ojtest directly.
What it should do is display an error message that the file in question could not be found.
Regards,
MartinComments
-
ojunit is missing assertions for exceptions and regexes
0 comments Created 5 months ago by dwtso I added them (after using them for a while internally)
Patches here: dwt@3471747
and here: dwt@fe8b294Comments
-
2 comments Created 5 months ago by j4johnfoxpress does not work when using cibs@tlrobinsonxusing press --flatten, I find a few problems:
1) cib file loading doesn't work:
- [CPBundle loadCibNamed:owner:loadDelegate:] unrecognized selector sent to class 0x000026
2) All .j files (e.g. individual .j files in my project) are copied, as well as the original .j files from AppKit and Foundation frameworks (e.g. ~/browser.platform).
Aside from the cib file problem, the app does run.
Comments
tlrobinson
Sat Jun 13 16:46:16 -0700 2009
| link
The problem is that press is not aware of the classes used in cibs, so they may be stripped.
Workarounds:
use the "--nostrip" option if you only care about flattening, not reducing file size
explicitly import all classes used in the cibs, possibly at the top of AppController.j (don't just import "AppKit/AppKit.j" since it is ignored)
-
Fix well-formed issues - Browser detection
0 comments Created 5 months ago by timperrettCorrect the frequent errors with "not well-formed" appearing in browser consoles by adding some type of client checking code that means these errors do not occur.
Comments
-
Currently CPCollectionView arranges its items by starting at the top-left, filling each (fixed width) row left-to-right and adjusting its height as necessary to fit in the required number of rows.
As far as I can gather Cocoa doesn't have this either but it would be useful to have an alternative mode which would render items top-to-bottom, filling fixed-height columns and adjusting the width to fit.
This would then allow it to be used for rendering lists of items which scroll horizontally.
The only required change to the interface would be an additional accessor to set/get the "grow" direction.
I'll have a go at this myself if I get the time.
Comments
I've commited a patch for this at: http://github.com/maport/cappuccino/commit/93cc5700c8e39e84fded1a4b4ba3d69f03a12dd8
This adds a new orientation property which can be set to
CPCollectionViewHorizontalOrientationto "orient" the view horizontally rather than the standard vertical arrangement:- (void)setOrientation:(CPCollectionViewOrientation)anOrientationIn this orientation the view has fixed height, items are arranged in columns starting on the left and the width is varied.
It is particularly useful if you want to render a one row list that scrolls horizontally.
The patched CPCollectionView should be completely backward compatible and users who don't use
setOrientationshouldn't encounter any differences. However I have deprecatedsetVerticalMarginin favour of a newsetDivisionMarginmethod since the "vertical margin" is the margin between rows in the standard vertical orientation but becomes the margin between columns in the the horizontal orientation.Any better suggestions than
setDivisionMarginwelcome; a "division" is the general term I am using to represent a row or column.
-
Vertical splitter behavior when using Firefox 3.0.10 (on Win XP)
1 comment Created 5 months ago by cwsIf I open following website created with cappuccino:
http://www.nice-panorama.com/Programmation/cappuccino/Browse-Cappuccino-Tutorials.htmlThe vertical splitter can be moved to the right only, if the mouse is only hitting the splitter control. If I move above the right subview, it stops resizing. I can only escape, if I click the mouse button or if I move the mouse back above the splitter control.
Comments
-
Working on a CPSound class to match the NSSound from Cocoa. Tell me if it's not needed!
Comments
What is the status of CPSound? I would say this is a crucial part of some application. I took a look at your branch and looked through CPSound.j but it's hard to tell what's missing in it (if anything).
I just uploaded the latest changes to my own branch. I have implemented most of the useful stuff. I currently use quicktime, and the audio tag if QT is not supported. However, more addons should be added. Also the pause/stop behaviour seems to be different depending on what tag is used. Also I do not know what browsers this works in, would help if somebody checked.
-
CPButtonBar rendered without a skin (by default, using aristo)
4 comments Created 5 months ago by cwsI figured out that there is a aristo skin for CPButtonBar, but it does not appear.
Any idea how to activate it?I used following code:
@import <Foundation/CPObject.j> @implementation SideBarView : CPView { } - (id)initWithFrame:(CGRect)aFrame { if(self = [super initWithFrame:aFrame]) { var bounds = [self bounds]; [self setBackgroundColor:[CPColor colorWithRed:213.0/255.0 green:221.0/255.0 blue:230.0/255.0 alpha:1.0]]; var buttonbar = [[CPButtonBar alloc] initWithFrame:CGRectMake(0, 30, 200, 26)]; [buttonbar setBackgroundColor:[CPColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0]]; [buttonbar setFrameOrigin:CGPointMake(0,CGRectGetHeight(bounds)-26)]; //[buttonbar setFrameSize:CGPointMake(CGRectGetWidth(bounds),26)]; [buttonbar setAutoresizingMask:CPViewWidthSizable | CPViewMinYMargin]; [self addSubview:buttonbar]; var button1 = [[CPButton alloc] initWithFrame:CGRectMake(10, 1, 30, 24)]; [button1 setTitle:@"+"]; [buttonbar addSubview:button1]; } return self; } @endby the way, if I uncomment following line of code, the CPButtonBar disappears somehow:
//[buttonbar setFrameSize:CGPointMake(CGRectGetWidth(bounds),26)];In gerneral: Is there a tutorial how to deal with the styles/themes/skins added with release 0.7?
Comments
chandlerkent
Sat Jun 06 10:14:44 -0700 2009
| link
This is a question and not a bug report. I suggest it is removed.
I suggest to keep it here as a bug, because it makes no sense to render this buttonbar without a skin by default!
I found out, that it renders, if I change size of the parent CPView (which is embedded via vertical scroller). If I do resize the scroller, the skin appears. But it is white / without skin, before I do this.
Btw: It is not possible to resize the scroller, by using the two lines on the right hand side of the CPButtonBar.
Any idea?
-
CPScrollView clips incorrectly when attempting to add items in its document view
0 comments Created 5 months ago by saikatWhen a CPScrollView is set up to use a CPCollectionView and new items are added to the CPCollectionView which are set to be editable upon addition, the scroll view does not adjust correctly. See the comments in the code below for more details.
Comments
-
Selecting an added item to CPCollectionView does not work
0 comments Created 5 months ago by saikatI am trying to select the text of a text field that is being added to a collection view. It doesn't work, however, when attempting to do this after a reload of the content. For more details, look at the comments in the code.
http://dl.getdropbox.com/u/211886/CPCollectionSelectOnAddBug.zip
Comments
-
Vertical Line in InterfaceBuilder doesn't work in nib2cib
0 comments Created 5 months ago by [deleted user]nib2cib can't convert a Vertical Line from IB.
workaround: I use a Image with 1x1 pixel, and bring it to the line I need.
Comments
-
Buttons lose their height, after nib2cib
0 comments Created 5 months ago by [deleted user]I have a made a Button in InterfaceBuilder,
deactivate the borders and make in heighter.Works in IB and Obj-C, but convert with nib2cib,
it looks in Safari straingh: the height isn't bigger,
and the button-tittle is on the basement.Comments
-
The ComboBox in IB doesn't work with nib2cib
0 comments Created 5 months ago by [deleted user]The ComboBox in IB doesn't work with nib2cib.
Comments
-
2 Backgroundcolor - Problems:
a)
if your window is 800x600 pixels, and you use a backgroundcolor in the AppController.j,
the hole page in safari is blue, instead of only the 800x600 pixels.b)
if you set the
[theWindow setFullBridge:YES]; to NO or comment it out with // the backgroundcolor is gone. No BGcolor anymore there.workaround: i use a 1x1 pixel with the color, made an image in interfacebuilder about the hole window and send it to back.
Comments
I don't understand this bug. Could you please provide a sample application that exhibits the problem?
[deleted user] Sat May 30 14:11:06 -0700 2009 | linkok, no problem. :)
example for a)
[i delete the link, because of high traffic]This is the example, that the backgroundcolor make all to blue, just not the x to y - size of the webapp.
in the .j, i make a comment
//the background-color error to find easier the bg-color - entry.b)
i add to same code the setFullBridge:NO,
and the backgroundcolor is gone.examplecode:
[i delete the link, because of high traffic]EDIT: [i delete the link, because of high traffic - if the examples needed again, please contact me]
hey can we please have these tests again, you can paste them as gists http://gist.github.com/ to save your traffic.
thanks
-
CPWebView should contain a property to resize only Horizontally, Vertically, or both. Currently, both a vertical and horizontal resize happens when the scroll mode is CPWebViewScrollAppKit.
Secondly, The scroll mode should not necessarily be the delimiting factor on whether a CPWebView resizes itself. The WebView should be able to resize itself without containing a scroll area.
Think of this scenario: Someone wants to load multiple web views in a list like format and does not want each web view to contain a scroll area based on the WebView's initial size. Rather they want the full WebView (resized and all after the load) to be present without scroll bars and scrolling will be managed at a higher containing view.
Please let me know if you think I am entirely off with this behavior. I have no problem working on a patch for this.
Comments












Plist parser fails on IE8 when there’s no DTD header in XML
Patch to fix the issue. Tested on IE8 (in both IE8 and IE7 modes).
by Farcaller
Commited at farcaller/cappuccino@b91a959