gettingstarted
[Top] [All Lists]

Re: g.stringWidth() NilObjectException

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: g.stringWidth() NilObjectException
From: Will Leshner <leshner at ljug dot com>
Date: Wed, 29 Sep 2004 17:08:55 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <C084543A-1269-11D9-ACA3-000A95B8E76E at bellsouth dot net>

On Sep 29, 2004, at 3:48 PM, Barry Lumpkin wrote:

Why do I get a NilObjectException on the g.TextFont line?

Because g is a reference to a Graphics object, and the current value of g, as far as I can see, is Nil. When you try to access an object through a Nil reference, you get a NilObjectException.

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>