Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts

  • Mims H Wright 2:27 am on March 2, 2010 Permalink | Reply
    Tags: , clipboard, copypasta   

    Copy text to clipboard in AS3 

    Here’s how you do it!
    http://mandarin.no/as3/as3-snippet-1-copy-text-to-clipboard/

     
  • Roger Braunstein 4:14 am on March 1, 2010 Permalink | Reply
    Tags: , XCode   

    iPhone Project Keeps Appearing in iPad Simulator? 

    Hey guys, this is a quick thing I’ve run into while using the beta of the iPhone OS 3.2 SDK. If you create an iPhone project for iPhone OS 3.2, you might notice that every time you launch it, it appears in the iPad simulator instead of the iPhone simulator.

    If this happens to you, it’s because 3.2 isn’t available on the iPhone yet, so regardless of your active configuration, the project has to run on iPad. For now, to fix this, you’ll want to roll your project back to iPhone OS 3.1.3 or earlier. Just go into your project info → Build Settings and set the Base SDK to iPhone Device 3.1.3 (or what have you). You’ll also want to make sure that SDK version is active in the Active SDK run settings.

    I know this little fix is only going to be necessary for a short while, but if you were one of the 14 people wondering why this happens, there you go.

     
  • Roger Braunstein 5:32 am on February 25, 2010 Permalink | Reply  

    Learn Yourself to Debug Good With XCode and Instruments 

    Hi! (Here Roger pretends it hasn’t been 100 years since his last posting and moves on swiftly.) So if you’ve been learning or practicing iPhone development, you might agree with me that there’s one topic that inspires a little FUD and that is covered a little sparsely by books — debugging. Between scary messages like EXC_BAD_ACCESS, uncaught exceptions deep in the guts of thorny disassembled framework code, crashes that don’t break into the debugger, and the direct interface to the gdb console, debugging in XCode can have a learning curve even if you know your way around a debugger. I’ve seen too many good men use NSLog() to debug, and it bugs me.

    So here’s a few screencasts I found around town on debugging, that I wanted to share. Do yourself a favor and watch them.

    First up, a series of two screencasts by Jeff LaMarche on debugging basics. I’ll reiterate, even if it starts out basic, you might learn something since it seems everyone uses the debugger differently. Part One, Part Two. Key takeaways:

    • Dude. Just drag the breakpoint out of the gutter to remove it. I’ve been right-clicking the damn thing my whole life. Sighhh….
    • XCode breakpoints are heckuv powerful. Use symbolic breakpoints, conditional breakpoints, and breakpoint actions wisely.
    • Single most important thing: Add a symbolic breakpoint on objc_exception_throw. Newer XCode builds have a menu item for this in Run→Stop on Objective-C Exceptions.

    Next, a screencast on debugging EXC_BAD_ACCESS, which is raised when you access an object that has vanished into thin air, most likely because you over-released it. This screencast from Mark Johnson shows you how to debug these errors with Instruments and NSZombies. You’ll see how to generate a complete history of any object, from allocation and including every release or retain. You’ll also see how to find the objects of interest by enabling zombies (you know, after your object is completely released and freed it sticks around, undead). For those of you who see Instruments and aren’t quite sure what to do with it, just watching Mark use it is helpful. My takeaway was that it’s much easier and nicer to use Instruments than to enable zombies by hand.

    Finally, here’s a nice tutorial by Owen Goss on using Instruments to find memory leaks. It’s also another good scenario which you can follow to help get your head around Instruments.

    Bonus info: XCode 3.2 and later has the Clang Static Analyzer built in. This is a sweet tool that analyzes your code without running it (thus the static part). Just run Build→Build and Analyze and you’ll get a brutal report of how and where Clang thinks your code is totally sketchy. John Muchow shows you how here.

    Anything that still baffles you about XCode/iPhone debugging? Care to add any other beginner debugging help? Hit the comments!

     
    • majman 6:08 pm on February 27, 2010 Permalink

      more please

  • Mims H Wright 11:14 pm on February 8, 2010 Permalink | Reply
    Tags: , , launch, , version2.0   

    KitchenSync Version 2.0 is now available! 

    I’m very proud to announce that the second version of KitchenSync has arrived! What started as a labour of love about 3 years ago has finally gotten its first much needed upgrade. Just about everything in this version is newer and more streamlined. The entire system for greater simplicity and practical functionality.

    This version will not be backwards compatible, however, there’s finally some Decent Documentation!!! There’s also a new blog devoted to KS.

    GO GET IT NOW!

    Here’s some of the new features. You can view all of them by checking out the change log.

    • Usability
      • REFACTORED all classes with usability and stability in mind.
      • UPDATED all ASDocs
      • ADDED several new methods in the TweenFactory for easy tween creation.
    • Synchronizer and Time
      • REFACTORED The way time is handled throughout.
      • ADDED ISynchronizerCore and example core classes. This allows advanced users to switch between different methods of timing (e.g. enterframe or timer based)
      • ADDED FrameRateUtil for getting instantaneous and averaged framerates of the system. The FrameRateView now makes use of this class and has more options.
    • Action Architecture
      • REFACTORED action classes and extracted several interfaces from them.
      • ADDED jumpToTime and jumpByTime functionality to actions.
      • ADDED Looping via a new group called KSLooper.
      • REMOVED complicated and rarely used action triggers from AbstractAction.
      • ADDED togglePause() method and progress variable to AbstractAction (for getting percentage complete of an action).
    • Tweens
      • CHANGED constructors in KSTween. Emphasis is now on using TweenFactory.
      • IMPROVED Object parser in TweenFactory
    • Action Groups
      • ADDED Syntactic sugar to the group constructors. using an array in the constructor for a parallel group adds a sequence and vice versa.
      • ADDED totalDuration to groups to show the duration of all child actions in a group.
      • ADDED KSRandomGroup.
      • REMOVED KSSteppedSequenceGroup because it seemed kinda useless.
    • Loading Actions
      • REFACTORED Loading actions. Now they’re much easier to use and more powerful.
      • ADDED KSLoadQueue for quickly creating a class to load files from the network in a batch.
      • ADDED the resultList property to the ILoaderAction interface so that you can quickly access the loaded files in a batch.
    • Misc
      • RENAMED several classes and reworked package structure
      • ADDED KSAsynchronousIteration for running processor-intensive for loops spaced out over a period of time so that they are essentially asynchronous.
      • FIXED several minor and major bugs.
     
  • Mims H Wright 4:41 pm on December 18, 2009 Permalink | Reply
    Tags: , , , icon   

    Redesign Eclipse Logo Contest 

    I wholeheartedly agree with this tweet by RJ Owen. The Eclipse icon is sad. For those of us who use the FlexBuilder plug-in (no doubt to achieve some modicum of geek cred) we look at it all day, every day. Luckily, it’s very easy to swap out. So, let’s see if we can do better!

    Take a crack at making the Eclipse icon and loading splash image more interesting!

    Create one PNG to be used as the application icon. It can use transparency and should be sized at either 512×512, 256×256 or 128×128. The png can be converted to icons for all systems at http://iconverticons.com/

    Also, create one BMP to be used as the loading splash image. The existing Eclipse one is 455×295 but yours can be any size you like. Preferably not more than 500 pixels on either size.

    Post your new creations as a comment to this post and the best ones will be picked by RJ and me! There’s no prize, just more geek cred! The deadline is 12:01am PST on January 1 after which I will annouce the winners and give instructions for how to swap the images out on your computer!

    Go!

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel