Skip to content

Instantly share code, notes, and snippets.

View jnicholls's full-sized avatar

Jarred Nicholls jnicholls

  • Onda AI
  • Frederick, Maryland
View GitHub Profile
(void)windowDidResize:(NSNotification*)notification {
if (!shell_->window_state->ignore_changes) {
NSWindow* window = [notification object];
shell_->window_state->last_frame = window.frame;
if (shell_->window_state->state != Ion::IonUI::Window::STATE_HIDDEN) {
if (window.isZoomed && shell_->window_state->type == Ion::IonUI::Window::TYPE_NORMAL)
shell_->window_state->state = Ion::IonUI::Window::STATE_MAXIMIZED;
else
shell_->window_state->state = Ion::IonUI::Window::STATE_NORMAL;
filters: [
["JSON Files", "*.json"],
["All Files", "*.*"]
]
// or
filters: [{
@jnicholls
jnicholls / gist:2400503
Created April 16, 2012 18:22
JSON.stringify Store Records
JSON.stringify(Ext.Array.map(store1.getRange(), function(o) { return o.data; }), null, ' ');