Found out something interesting about the CSS font-weight property today – in addition to using normal and bold, you can also use weight numbers to specify semibold fonts. So if you’re using Myriad Pro, you can set font-weight: 600; and get Myriad Pro Semibold (vs Myriad Pro Bold) most of the time. Note that the article I’m linking to is talking about how font-weight numbers aren’t fully implemented in most browsers – they don’t do lighter fonts very well, but they usually support semibold for some reason.
Too many posts about food? Maybe, but we just made some tasty wraps! Kierstyn left me wandering around the produce section (never a good idea), and I found some neat ingredients -
- Wholly Guacamole Snack Sized Packs – it tastes great, has no lemon (hate lemon in Guacamole), keeps well, and are just right for squeezing on a wrap or two.
- Backyard Farms Tomatoes – found these at Walmart, not sure if they sell them everywhere, but they’re a little bigger than cherry tomatoes, and a little smaller than big ones. You can slice them like an orange, and pop them right in.
- Mission Sun Dried Tomato Wraps – found these in the bread section, I didn’t bother heating them.
- Kraft Sandwich Shop Chipotle Mayonaise – can’t wait to try this on something else. You probably don’t want to much of it though.
To make the wrap, use the above ingredients, plus some cheese (I used muenster), lunch meat (turkey), and a leaf of lettuce. If you got the Mission wraps, follow the instructions on the back for folding it. Start by folding the edges so they meet together in the middle. Then, roll it up from the short edge, so you have a shorter wrap. Slice it in half and eat it, maybe with some potato salad.
I tend to get millions of Finder windows open, and spend most of my weekends trying to close them all. But now all my problems are solved. As you know, Command-W closes the current window without quitting the program. If you add Option to that, it closes all open windows for the program. Command-Option-W! (thank you mac tip site I found on Google)
I’ve been working on a new iPhone app lately, and diving back into Objective-C has reminded me how many of its little conventions I tend to forget in just a month. So I’m making myself a cheat sheet as I go along, and thought it might be useful for the search engines.
Properties for IBOutlets
IBOutlets like properties, but what kind of properties? Nonatomic retained properties seem to be its favorite.
@property (nonatomic, retain) IBOutlet UIType *propertyName; @synthesize navigationController;
(Theocacao has a great reference on Obective-C 2 properties).
Tab Bars
If you’re using a tab bar to load a Nib with a view controller, make sure the tab bar knows the right controller to load. It doesn’t look at the nib, it looks at whatever you give it.
Navigation Bars inside of Tab Bars
Don’t make a separate NIB file that you reference from the tab bar. In the NIB that your Tab Bar is in, drag a NavigationController beneath the TabController in the IB outline view. Then you can set a root view for the NavigationController, that loads from another NIB (StackOverflow).
TableViewControllers
The default template does not actually put any content into the cell. You have to do that yourself, or it’ll look blank and sad. Try adding cell.text = @"hellodeo"; to where the cell is defined and returned.
Navigation Controllers
From any view controller that’s been pushed onto a UINavigationController stack, you can access that navigation controller by using self.navigationController.
Nibs and View Controllers
NIB Views must have view controller files in order to be usable. You make File Owner object the class identity of the Controller, then connect the view outlet from File Owner to the view.
To Load a View Controller with a NIB
MyViewController *MyViewController = [[MyViewController alloc] initWithNibName:@"MyNibFileName" bundle: nil];
Categories
@alexnking
- http://t.co/enKlRevK I'm definitely voting for OS X Ocelot #archer #macosx 3 days ago
- After playing Diablo III for a few hours, I believe I've used up my entire clicking quota for the week. 4 days ago
- RT @mikeseymour: New EPIC update coming with Gyro support means they have turned on the sensors, info will be metadata for various progr ... 1 week ago
- RT @DamonLindelof: "I've buried enough Waynes. And has my Wayne Tree grown yet? No, Master Bruce, it has not." #IfIWroteDarkKnightRises 2 weeks ago
- Sat down to read a book, realized our lighting setup is more suited to surfaces that are backlit. 3 weeks ago


