Skip to content

Instantly share code, notes, and snippets.

@saikat
Created May 27, 2009 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saikat/118452 to your computer and use it in GitHub Desktop.
Save saikat/118452 to your computer and use it in GitHub Desktop.
var newScreen = [[ScreenService sharedScreenService] addScreenWithName:"New Screen"];
[screensCollectionView reloadContent];
var index = [[[ScreenService sharedScreenService] screens] count] - 1;
var screenName = [[[screensCollectionView items][index] view] screenName];
[screenName setEditable:YES];
[screenName setBackgroundColor:[CPColor whiteColor]];
[[screenName window] makeFirstResponder:screenName];
[screenName selectText:self];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment