This guest article is courtesy of Uncle Dano. This article initially started out as a speech for RSBANDBUpdate! 339 in which we asked listeners to pick their favourite RuneScape update of the year. The update described here was Uncle Dano’s favourite update. We hope you enjoy this piece. On October 25, 2011, Jagex released an [...]
Unlike other libraries [1, 2], filer.js takes a different approach and incorporates some lessons I learned while implementing the Google Docs Python client library. Namely, the library resuses familiar UNIX commands (cp, mv, rm) for its API. My goal was to a.) make the HTML5 API more approachable for developers that have done file I/O in other languages, and b.) make repetitive operations (renaming, moving, duplicating) easier.
- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize
{
// how to resize a horizontal split view so that the left frame stays a constant size
NSView *left = [[sender subviews] objectAtIndex:0]; // get the two sub views
NSView *right = [[sender subviews] objectAtIndex:1];
float dividerThickness = [sender dividerThickness]; // and the divider thickness
NSRect newFrame = [sender frame]; // get the new size of the whole splitView
NSRect leftFrame = [left frame]; // current size of the left subview
NSRect rightFrame = [right frame]; // ...and the right
leftFrame.size.height = newFrame.size.height; // resize the height of the left
leftFrame.origin = NSMakePoint(0,0); // don't think this is needed
// the rest of the width...
rightFrame.size.width = newFrame.size.width - leftFrame.size.width - dividerThickness;
rightFrame.size.height = newFrame.size.height; // the whole height
rightFrame.origin.x = leftFrame.size.width + dividerThickness; //
[left setFrame:leftFrame];
[right setFrame:rightFrame];
}
Set so split view does not resize with window.
- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize
{
// how to resize a horizontal split view so that the left frame stays a constant size
NSView *left = [[sender subviews] objectAtIndex:0]; // get the two sub views
NSView *right = [[sender subviews] objectAtIndex:1];
float dividerThickness = [sender dividerThickness]; // and the divider thickness
NSRect newFrame = [sender frame]; // get the new size of the whole splitView
NSRect leftFrame = [left frame]; // current size of the left subview
NSRect rightFrame = [right frame]; // ...and the right
leftFrame.size.height = newFrame.size.height; // resize the height of the left
leftFrame.origin = NSMakePoint(0,0); // don't think this is needed
// the rest of the width...
rightFrame.size.width = newFrame.size.width - leftFrame.size.width - dividerThickness;
rightFrame.size.height = newFrame.size.height; // the whole height
rightFrame.origin.x = leftFrame.size.width + dividerThickness; //
[left setFrame:leftFrame];
[right setFrame:rightFrame];
}
As stated below the 2011 Clip Show is here: http://www.rsbandb.com/forums/viewtopic.php?f=50&t=82602
Next week 2012 starts.
Next week 2012 starts.
The show of the year, the show everyone waits for, the show we love doing is finally here! Re-live our best moments (hopefully) of 2011. Download Now Direct Download – 64 Kbit MP3 Forum Discussion Hosts: Shane and Chief Snake Duration: 2:16:25 Note: This episode does carry an explicit tag. As it is the end of [...]
Time to edit the... CLIP SHOW!





