<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-277905973126082107</atom:id><lastBuildDate>Tue, 13 Oct 2009 08:56:32 +0000</lastBuildDate><title>Developing [iN]sanity</title><description></description><link>http://devngo.blogspot.com/</link><managingEditor>noreply@blogger.com (igo garcia)</managingEditor><generator>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-1167557556879545299</guid><pubDate>Thu, 21 Aug 2008 17:00:00 +0000</pubDate><atom:updated>2008-08-21T10:02:23.470-07:00</atom:updated><title>Lac [k] of updates</title><description>Hey!!!!&lt;br /&gt;&lt;br /&gt;Sorry for the lack of updates but I'm recently very very busy in things that I'm forced to do such as homework!!&lt;br /&gt;&lt;br /&gt;Anyways, let me tell you that I'm becoming an XML expert. That's right. Hopefully by the end of the month I'll have everything ready. Web Services + Java + iPhone SDK (mobile application)&lt;br /&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;See you around!!&lt;br /&gt;-igo&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-1167557556879545299?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/08/hey-sorry-for-lack-of-updates-but-im.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-8991383011397974816</guid><pubDate>Wed, 23 Jul 2008 12:07:00 +0000</pubDate><atom:updated>2008-07-23T05:28:23.612-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>xcode</category><category domain='http://www.blogger.com/atom/ns#'>objects</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Protocol Objects?</title><description>Not again!!&lt;br /&gt;&lt;br /&gt;Now &lt;span style="font-style: italic;"&gt;Protocol Objects&lt;/span&gt; it seems this never stops. The objects created by protocols (&lt;span style="color: rgb(192, 192, 192);"&gt;seen earlier&lt;/span&gt;) just creates more mess since they are instances of Protocol Class!! Now who did that?!!&lt;br /&gt;&lt;br /&gt;Special way of calling them:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Protocol *&lt;span style="color: rgb(255, 204, 102);"&gt;myXMLSupportProtocol&lt;/span&gt; = @protocol(MyXMLSupport);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Adopting protocols?&lt;br /&gt;&lt;br /&gt;Yep, "A class is said to &lt;span style="font-weight: bold;"&gt;adopt&lt;/span&gt; a formal protocol if in its declaration it lists the protocol within angle brackets after the superclass name":&lt;br /&gt;&lt;br /&gt;@interface ClassName : ItsSuperClass &lt;&gt;&lt;br /&gt;&lt;br /&gt;2 or more would be comma-separated inside &lt;span style="color: rgb(102, 51, 255);"&gt;angle brackets&lt;/span&gt;. Categories do basically the same, just use the category declaration and still add the angle brackets with the protocol list&lt;br /&gt;&lt;br /&gt;If a class adopts a Protocol the it &lt;span style="color: rgb(255, 255, 204);"&gt;conforms&lt;/span&gt; it. This said, check how it's done.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;if ( ! [receiver conformsToProtocol:@protocol(MyXMLSupport)] ) { &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      // Object does not conform to MyXMLSupport protocol &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;     // If you are expecting receiver to implement methods declared in the &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    // MyXMLSupport protocol, this is probably an error &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;} &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enough adopt and conform...let's move on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-8991383011397974816?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/07/protocol-objects.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-7987736289494210349</guid><pubDate>Wed, 23 Jul 2008 07:32:00 +0000</pubDate><atom:updated>2008-07-23T02:07:26.158-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>xcode</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><category domain='http://www.blogger.com/atom/ns#'>morning</category><title>Who said Event?</title><description>Finally we are approaching to code which manages events...such as MOUSE!! (which in this case would be "finger" perhaps? )&lt;br /&gt;&lt;br /&gt;When I first saw Protocols at the index I thought of network connections and sockets. Go no go...&lt;br /&gt;&lt;br /&gt;"&lt;span style="font-style: italic;"&gt;Protocols declare methods that can be implemented by any class&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;bottomline&lt;br /&gt;&lt;br /&gt;"&lt;span style="font-style: italic;"&gt;As an outsider, all you need to know is what messages you can send (the protocol) and where to send them (the receiver)&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;All this is to let the anonymous objects live. We need to call other objects but with just don't know what do they expect from us to obtain a value. Basically we do not care if it's a zebra object we are asking something too. I just want that [&lt;span style="color: rgb(204, 204, 204);"&gt;zebra&lt;/span&gt;] object to send me how many stripes he has and where to send that answer. That's all. That's why we need protocols...to know how many stripes the zebra has and where will the answer will be sent, although we don't even know that we are "talking" to a zebra object.&lt;br /&gt;&lt;br /&gt;Definition of a protocol (formal)&lt;br /&gt;@protocol devngoProtocl&lt;br /&gt;method declaration&lt;br /&gt;@end&lt;br /&gt;&lt;br /&gt;There is the possibility to define between optional and required methods to the user.&lt;br /&gt;&lt;br /&gt;(informal)&lt;br /&gt;@protocol NSObject (devngoProtocol) &lt;--- Which shows the usage of categories for this declaration.&lt;br /&gt;@end&lt;br /&gt;&lt;br /&gt;&lt;time&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-7987736289494210349?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/07/who-said-event.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-2989458412264874992</guid><pubDate>Wed, 23 Jul 2008 07:32:00 +0000</pubDate><atom:updated>2008-07-23T00:32:22.719-07:00</atom:updated><title>Workplace</title><description>&lt;p class="mobile-photo"&gt;&lt;a href="http://4.bp.blogspot.com/_dFSp75mTrlo/SIbeh9Bw42I/AAAAAAAAAAM/TiQPNN24atI/s1600-h/photo-742724.jpg"&gt;&lt;img src="http://4.bp.blogspot.com/_dFSp75mTrlo/SIbeh9Bw42I/AAAAAAAAAAM/TiQPNN24atI/s320/photo-742724.jpg"  border="0" alt="" id="BLOGGER_PHOTO_ID_5226109092509049698" /&gt;&lt;/a&gt;&lt;/p&gt;Sharing my workplace. Thanks JackBe&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-2989458412264874992?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/07/workplace.html</link><author>noreply@blogger.com (igo garcia)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_dFSp75mTrlo/SIbeh9Bw42I/AAAAAAAAAAM/TiQPNN24atI/s72-c/photo-742724.jpg' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-4032745957413457705</guid><pubDate>Wed, 23 Jul 2008 06:22:00 +0000</pubDate><atom:updated>2008-07-22T23:28:23.658-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>hello world</category><category domain='http://www.blogger.com/atom/ns#'>xcode</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>iPhoneFirst</title><description>Hey!&lt;br /&gt;&lt;br /&gt;Although I haven't finished the Obj-C guide I headed to the example. &lt;span style="color: rgb(153, 153, 0);"&gt;I just couldn't bear it anymore&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;XCode basically does everything for us. I just displayed the nice &lt;span style="color: rgb(51, 102, 255);"&gt;Hello World!&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Simple commands so to speak:&lt;br /&gt;&lt;br /&gt;Delegate:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;MyView *view = [[MyView alloc] initWithFrame:[window frame]];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    [window addSubview:view];&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    [view release];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;View:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;- (void)drawRect:(CGRect)rect {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    /* Draw "Hello, World!" */ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    NSString *hello = @"Hello, World!"; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    CGPoint location = CGPointMake(30, 30); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    UIFont *font = [UIFont systemFontOfSize:24]; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    [[UIColor whiteColor] set]; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    [hello drawAtPoint:location withFont:font]; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Yes, it is an instance method. We can more or less know what the snippet tells right? We've got the casting method, declaring @"" as String and so on. Perhaps the doubt is&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0);"&gt;CGPoint location = CGPointMake(30, 30); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;why? Where is the *? Perhaps it ain't a pointer and it is in fact some sort of common object assignation.&lt;br /&gt;&lt;br /&gt;That'd be all.&lt;span style="color: rgb(255, 0, 0);"&gt; I'll keep reading now&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;One last thing...how can I do this when everyone isn't asleep. I should be resting my 8 hours but then I feel useless since I didn't give it a try the whole day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-4032745957413457705?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/07/iphonefirst.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-8313289983725166561</guid><pubDate>Mon, 21 Jul 2008 00:28:00 +0000</pubDate><atom:updated>2008-07-20T17:29:16.281-07:00</atom:updated><title>Runtime Differences</title><description>"Non-fragile instance variables"? Wow....haha, 64bits is giving me headaches!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-8313289983725166561?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/07/runtime-differences.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-6388363829091425473</guid><pubDate>Mon, 30 Jun 2008 19:55:00 +0000</pubDate><atom:updated>2008-06-30T14:04:36.495-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>nsobject</category><category domain='http://www.blogger.com/atom/ns#'>class</category><category domain='http://www.blogger.com/atom/ns#'>nsstring</category><category domain='http://www.blogger.com/atom/ns#'>nsmatrix</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Happy Objective-C</title><description>I love Obj-C :D&lt;br /&gt;&lt;br /&gt;What I learnt in today's reading:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 51, 255);"&gt;NSObject &lt;/span&gt;-  superclass of everything except your own root class [way difficult]&lt;br /&gt;&lt;br /&gt;Classes as the object factory since each object is an instance of a class, therefore it's a class object.&lt;br /&gt;&lt;br /&gt;Some similarities between instanceof and &lt;span style="color: rgb(255, 204, 0);"&gt;isMemberOfClass&lt;/span&gt;:someClass method.&lt;br /&gt;and &lt;span style="color: rgb(255, 0, 0);"&gt;isKindOfClass&lt;/span&gt;:someClass method which tells if the object we are evaluating inherits from someClass.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Static Typing (ohh &lt;span style="font-weight: bold;"&gt;pointers &lt;/span&gt;here we go!) Useful for the compiler to do type checking&lt;br /&gt;&lt;br /&gt;Rectangle *myRect &lt;- This specifies that myRect is a pointer to Rectangle class and Graphic *myRect is also valid since Rectangle inherits from Graphic, therefore it can be statically typed like that.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Class Objects&lt;/span&gt;&lt;br /&gt;The body of our object, meaning the method implementations, name of the class and superclasses, instance variables, declarations of methods and their return types.&lt;br /&gt;&lt;br /&gt;Class can be typed id or to the Class data type&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;id aClass = [anObject class]&lt;/span&gt; or &lt;span style="font-style: italic;"&gt; Class aClass = [anObject class]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Main function: to create new instances.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;id myRect;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;myRect = [Rectangle &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;alloc&lt;/span&gt;&lt;span style="font-style: italic;"&gt;];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;what &lt;span style="font-style: italic;"&gt;alloc&lt;/span&gt; method does is to dynamically allocate memory for the new object's instance variable and initializes them all to 0. But we've got to initialize even properly, not just to 0. ( there we go!!)&lt;br /&gt;&lt;br /&gt;What we do to initialize is to surround the alloc with init, like this:&lt;br /&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;id myRect;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-style: italic;"&gt;myRect = [[Rectangle &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;alloc&lt;/span&gt;&lt;span style="font-style: italic;"&gt;] init];&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Just then myRect would be able to start interacting (e.g. receive messages). The structure is:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;alloc &lt;/span&gt;returns an instance of Rectangle&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;init &lt;/span&gt;is performed by that instance to set its initial state&lt;br /&gt;&lt;br /&gt;I knew I was inside the matrix!! There is a &lt;span style="font-style: italic; font-weight: bold;"&gt;NSMatrix &lt;/span&gt;object!!&lt;br /&gt;&lt;br /&gt;Messages rock! Look at this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[myMatrix setCellClass:[NSButtonCell class]];&lt;/span&gt;&lt;br /&gt;so what does this mean? (you can answer, you've learnt all the way with me!)&lt;br /&gt;No clue? Well here it is...&lt;br /&gt;NSButtonCell class returns what? A Class or an Id type therefore that is sent to setCellClass which is a setter to myMatrix NSMatrix object (previously initialized). Clear? No? One more time:&lt;br /&gt;myMatrix is an object (instance) of &lt;span style="font-style: italic;"&gt;NSMatrix&lt;/span&gt;. The CellClass that will be filling that myMatrix object is being defined by the Class passed to the setter method, NSButtonCell.&lt;br /&gt;&lt;br /&gt;Class names can only be used in two ways. As part of a message (receiver) or as a type name for a kind of object. Since I've already explained this you should know it.&lt;br /&gt;&lt;br /&gt;One new thing would be that if you don't know the class name at compile time but you will at runtime then use NSString *className&lt;br /&gt;and create this monster:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[anObject isKindOfClass:NSClassFromString(className)]&lt;br /&gt;&lt;/span&gt;So what does the last statement means?&lt;br /&gt;&lt;br /&gt;That's it for today and you've got homework!!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-6388363829091425473?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/happy-objective-c.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-8979802129371952006</guid><pubDate>Sun, 29 Jun 2008 23:05:00 +0000</pubDate><atom:updated>2008-07-23T00:40:15.637-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>javascript</category><category domain='http://www.blogger.com/atom/ns#'>mad</category><category domain='http://www.blogger.com/atom/ns#'>libraries</category><category domain='http://www.blogger.com/atom/ns#'>sablecc</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Today is a good day</title><description>No matter what I'll be posting about Obj-C today. I'm really desperate of reading some more and I can't because of this project. Just a question that doesn't need to be answered. What happens when we've lost our creativity? What if the eagerness of developing libraries or resources that can change the &lt;span style="color: rgb(153, 153, 0);"&gt;circle's sharpness&lt;/span&gt; dies?&lt;br /&gt;&lt;br /&gt;Today, Obj-C.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-8979802129371952006?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/today-is-good-day.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-4528230294461241284</guid><pubDate>Sun, 29 Jun 2008 07:01:00 +0000</pubDate><atom:updated>2008-06-29T00:03:37.055-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>humor</category><category domain='http://www.blogger.com/atom/ns#'>sablecc</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Move on!</title><description>Come on!! Move on!!&lt;br /&gt;&lt;br /&gt;As soon as I finish this damn project I'll be able to do what I WANT to do. This instantly translates to studying obj-c. I'm not at the pace I'd like and iPhone launch is merely two weeks away. I need something by next week or I'll be in serious problems.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-4528230294461241284?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/move-on.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-118097225621278725</guid><pubDate>Sun, 29 Jun 2008 03:14:00 +0000</pubDate><atom:updated>2008-06-28T20:18:14.176-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>absolut</category><category domain='http://www.blogger.com/atom/ns#'>pears</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Absolut</title><description>No Objective-C news...sorry, damn school's project is killing me .&lt;br /&gt;&lt;br /&gt;The good news is that I'm coding with Absolut Pears + Ginger Ale. Excellent mix!!&lt;br /&gt;&lt;br /&gt;I'll get back later on!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-118097225621278725?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/absolut.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-7479855140739974194</guid><pubDate>Sat, 28 Jun 2008 04:44:00 +0000</pubDate><atom:updated>2008-06-27T21:47:47.478-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>weekend</category><category domain='http://www.blogger.com/atom/ns#'>sablecc</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>Weekend arrived</title><description>Hey finally weekend!!!&lt;br /&gt;&lt;br /&gt;I'll get some sleep tonight and tomorrow I'll be doing some SableCC thing. Although there is no submission I'd like to go one step ahead since the earlier I submit my work the earlier I'll know if it is correct.&lt;br /&gt;&lt;br /&gt;And now...Obj-C :D&lt;br /&gt;&lt;br /&gt;Saturday and Sunday I'll be reading some more chapters from the guide. I really need to learn. It's a challenge I'd like to face.&lt;br /&gt;&lt;br /&gt;iPhone beta 8 was released today but I didn't install it. I'll wait to weeks more to have the final release.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-7479855140739974194?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/weekend-arrived.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-5886556882289064135</guid><pubDate>Fri, 27 Jun 2008 06:47:00 +0000</pubDate><atom:updated>2008-06-26T23:48:36.392-07:00</atom:updated><title>Lack of energy</title><description>Hey! &lt;span class="Apple-style-span" style="color: rgb(255, 102, 0);"&gt;Thanks&lt;/span&gt; for staying tuned. Today I won't update since I' tired,&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 0);"&gt; too tired&lt;/span&gt;&lt;/span&gt; perhaps. I'll get some &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;rest&lt;/span&gt; and start working tomorrow with what's left with the guide and&lt;span class="Apple-style-span" style="font-weight: bold;"&gt; school's project.&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sorry, see you back later.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-5886556882289064135?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/lack-of-energy.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-4826196697146008312</guid><pubDate>Thu, 26 Jun 2008 08:32:00 +0000</pubDate><atom:updated>2008-06-26T01:51:33.604-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>dynamic binding</category><category domain='http://www.blogger.com/atom/ns#'>pointers</category><category domain='http://www.blogger.com/atom/ns#'>id</category><category domain='http://www.blogger.com/atom/ns#'>structures</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>id, nil, pointers, messages, dynamic binding...</title><description>I dedicated some hours to read the ObjC guide by &lt;span style="font-weight: bold;"&gt;Apple&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Extremely interesting and in fact addictive. Since I don't have that much spare time I read only the Objects part. I'm missing classes and I'll finish Chapter 1.&lt;br /&gt;&lt;br /&gt;A glimpse of what I've read:&lt;br /&gt;&lt;br /&gt;Every object is of type &lt;span style="font-style: italic;"&gt;id&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;id anObject;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;nil&lt;/span&gt; is a null &lt;span style="font-weight: bold;"&gt;object&lt;/span&gt; with an &lt;span style="font-style: italic;"&gt;id&lt;/span&gt; value of 0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[anObject aMethodInside]&lt;/span&gt; &lt;- this stands for a message being sent to object &lt;span style="font-style: italic;"&gt;anObject&lt;/span&gt; (receiver) telling that &lt;span style="font-style: italic;"&gt;aMethodInside&lt;/span&gt;(message) has to be applied.&lt;br /&gt;&lt;br /&gt;Regarding to parameters being sent inside the message for specific behavior. Suppose it's a rectangle object called &lt;span style="font-style: italic;"&gt;myRec&lt;/span&gt; and a method inside it called &lt;span style="font-style: italic;"&gt;setWidth&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[myRect setWidth:20.0]; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Do you see the colon? Well that separates the values from the method. If you are wondering how to send more than just one obligatory param, this is the answer:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[myRect setOriginX: 30.0 y: 50.0];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And if we have a method which receives optional params? Perhaps a method that returns an array?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;[receiver makeGroup:group, memberOne, memberTwo, memberThree]; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As you can see makeGroup implementation inside the object could be the declaration of a group array that is being filled with three elements at runtime.&lt;br /&gt;&lt;br /&gt;Dynamic binding is pretty useful because it handles polymorphism within methods. This happens because method implementation is different among objects but the method can be named the same. Therefore at runtime the behavior is not the same and results are exclusive for each object.&lt;br /&gt;&lt;br /&gt;Fair enough, that's it for now. I'll &lt;span style="color: rgb(0, 153, 0);"&gt;study&lt;/span&gt; some more for my tomorrow's &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;midterm&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;edit: blog says 1:33am and as of my writing its 3:50am. I'll take a look where to change my time zone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-4826196697146008312?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/id-nil-pointers-messages-dynamic.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-5524854720451023247</guid><pubDate>Thu, 26 Jun 2008 08:26:00 +0000</pubDate><atom:updated>2008-06-26T01:32:43.544-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>pixel</category><category domain='http://www.blogger.com/atom/ns#'>coffee</category><category domain='http://www.blogger.com/atom/ns#'>mini</category><category domain='http://www.blogger.com/atom/ns#'>display</category><title>mini and display</title><description>Hey !&lt;br /&gt;&lt;br /&gt;Lots of updates as of now. Not as much as the coffee I've drunk.&lt;br /&gt;&lt;br /&gt;mini is working with 2gb without a glimpse. Excellent piece of hardware. The failures are still at the office since the person that validates the invoices for changing the dimms was not available. We'll see what happens tomorrow (in few hours).&lt;br /&gt;&lt;br /&gt;As I've been staring the display for more than 6 hours I've noticed that there is one dead pixel. We've lost him.&lt;br /&gt;&lt;br /&gt;Tomorrow I have mid-term and I'm really not that prepared but I can handle it wisely.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-5524854720451023247?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/mini-and-display.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-8252797119043647715</guid><pubDate>Wed, 25 Jun 2008 16:37:00 +0000</pubDate><atom:updated>2008-06-26T01:26:12.968-07:00</atom:updated><title>Happy again</title><description>Mac Mini is working &lt;span style="font-weight: bold;"&gt;flawlessly &lt;/span&gt;now.&lt;br /&gt;&lt;br /&gt;The problem was the RAM memory. Wouldn't know why since they are &lt;span style="color: rgb(0, 0, 153);"&gt;Supertalent&lt;/span&gt;. Anyways, as of now I'm working with &lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;1gb &lt;/span&gt;since I had to send the failures to warranty hoping to get 'em back by today.&lt;br /&gt;&lt;br /&gt;I've been reading and it seems that the mini can handle up to &lt;span style="font-style: italic; font-weight: bold;"&gt;3gb &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;unofficially&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-8252797119043647715?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/happy-again.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-2561687428294745839</guid><pubDate>Wed, 25 Jun 2008 13:02:00 +0000</pubDate><atom:updated>2008-06-25T09:40:18.172-07:00</atom:updated><title>RAM issues perhaps?</title><description>Hey!&lt;br /&gt;&lt;br /&gt;I couln't get back yesterday. I rendered my 'lil mini &lt;span style="font-weight: bold;"&gt;useless&lt;/span&gt;. It's having some problems with RAM memory I guess. A friend of mine told me today that perhaps it's the temperature the mini reaches. Today I'll be replacing RAM memory and perhaps use it without the cover.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Objective-C&lt;/span&gt; kickoff delayed&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-2561687428294745839?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/hey-i-coulnt-get-back-yesterday.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-277905973126082107.post-208454386657337795</guid><pubDate>Tue, 24 Jun 2008 20:40:00 +0000</pubDate><atom:updated>2008-06-24T13:53:44.077-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>learning</category><category domain='http://www.blogger.com/atom/ns#'>themes</category><category domain='http://www.blogger.com/atom/ns#'>objective-c</category><title>First post and main objective</title><description>&lt;span style="font-style:italic;"&gt;Tried to insert some javascript but didn't go well. Security reasons perhaps?&lt;br /&gt;Let's start with the first complain, shall we?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Themes...&lt;span style="font-weight: bold;"&gt;lack of themes&lt;/span&gt;. Why in earth are there so few themes? I liked this one since I didn't like any other. It was a matter of themes discarding 'till one showed up.&lt;br /&gt;&lt;br /&gt;Next, main purpose.&lt;br /&gt;&lt;br /&gt;Not my life nor my hobbies, my &lt;span style="font-weight: bold; font-style: italic;"&gt;passion&lt;/span&gt;. I'll be posting updates of how my &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;Objective-C learning&lt;/span&gt; process is going and some screencasts of my work. Perhaps not as neat as you'd like 'em to be since they'll be live recording.&lt;br /&gt;&lt;br /&gt;That's it for &lt;span style="font-weight: bold;"&gt;now&lt;/span&gt;. I'll be back later tonight for my first Obj-C related post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/277905973126082107-208454386657337795?l=devngo.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://devngo.blogspot.com/2008/06/first-post-and-main-objective.html</link><author>noreply@blogger.com (igo garcia)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></item></channel></rss>