Follow Me on Twitter
<div style="background-color: none transparent;"><a href="http://www.rsspump.com/?web_widget/rss_widget/twitter_widget" title="web widget">Twitter Widget</a></div>

Turn Off Xcode Undo Warning

I am not sure how many other people get irritated when trying to undo in Xcode. When you save a file you always get a prompt that asks if you want to undo after a save. Running this simple command in Terminal will get rid of that annoying warning.

defaults write com.apple.Xcode XCShowUndoPastSaveWarning NO
You will have to restart Xcode after changing this setting.

Friday ( 7 / 30 / 2010 )

Weezy World An Adventure Game

I am in the initial planning phase of a new game Weezy World. This is a working title and I don’t know if I will change it. The general idea of it is to create a Kings Quest V style game with a twist. I love top down tile based games in the perspective of Zelda. I was thinking it would be cool to have that type of world but have the control scheme of Kings Quest V. For those of you not familiar with Kings Quest the controls would be a slide out drawer of action commands. Look, touch, walk, run, active item and inventory. So, you would pick an action and then tap the screen to execute that action. For example, to walk across the screen you need to choose the walk command and tap on where you want to walk to. If you want to examine a suspicious tree you would choose look. Dialogs would be shown for conversations with people or the results of examining an object in the world. The idea of the game is to explore the world and find different objects to help you complete tasks and move through the story. I really like the idea of doing this type of game in a different perspective. I am also leaning towards a pixel art based game. I have had this idea running through my head for years now and I think it’s finally time to build it. Please let me know what you think via the comments.

Saturday ( 7 / 17 / 2010 )

UITableViewCell Multiline Text

- (UITableViewCell *)tableView:(UITableView *)aTableView 
                cellForRowAtIndexPath:(NSIndexPath *) indexPath
{		
	UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:@"Cell"];
	
	if(cell == nil)
	{
		cell = [[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"Cell"];
		cell.selectionStyle = UITableViewCellSelectionStyleNone;
		
		cell.textLabel.font = [UIFont fontWithName:@"Arial" size:18];
		cell.textLabel.lineBreakMode = UILineBreakModeWordWrap;
		cell.textLabel.numberOfLines = 3;
	}
	
	return cell;
}

Thursday ( 7 / 15 / 2010 )

OpenFeint Multiplayer Integration Into Artifice

So, OpenFeint finally added turn based multiplayer into their SDK. I can now finally ditch Google App Engine and Urban Airship! WOO HOO!!! Don’t get me wrong, these are not bad services. I have actually found them to be quite nice. They can however both cost money, and the App Engine app is more code to maintain. Personally I would prefer to work on the client side over the server side any day. With the new OpenFeint multiplayer SDK I can do just that.

What follows is a quick rundown of the OpenFeint multiplayer system. This systems seems to be rather flexible and the way I used it is not the only way to do things.

More after the jump!

Thursday ( 7 / 15 / 2010 ) Read more …

UIToolBar Hide / Show UIBarButtonItem

BOOL active = YES;
	
NSMutableArray *items = [NSMutableArray arrayWithArray:toolBar.items];
	
BOOL found;
	
for(int i = 0; i < items.count; i++)
{
     UIBarButtonItem *item = (UIBarButtonItem *)[items objectAtIndex:i];
     if([item isEqual:myButton]) found = YES;
}
	
if(found && !active) [items removeObjectAtIndex:myButtonIndex];
if(!found && active) [items insertObject:textViewButton atIndex:myButtonIndex];
	
[toolBar setItems:items animated:YES];

Wednesday ( 7 / 14 / 2010 )