• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird Error


  • Subject: Re: Weird Error
  • From: "Jonathan del Strother" <email@hidden>
  • Date: Fri, 19 Sep 2008 16:33:05 +0100

On Fri, Sep 19, 2008 at 4:18 PM, development2
<email@hidden> wrote:
> Ok I hope someone can help me. I need to get this working.
>
> Here is what I am doing. I have a class called Object, it is set up like
> this:
>
> -------------- Object.h
>
> @interface Object : NSObject
> {
>
>        NSNumber                *objectID;
>        NSNumber                *mass;
>        NSNumber                *elasticity;
>
>        NSString                *renderMeshFile;
>        NSString                *collisionMeshFile;
>        NSString                *iconFile;
>
> }
>
> @property (nonatomic, retain) NSNumber *objectID;
> @property (nonatomic, retain) NSNumber *mass;
> @property (nonatomic, retain) NSNumber *elasticity;
> @property (nonatomic, retain) NSString *renderMeshFile;
> @property (nonatomic, retain) NSString *collisionMeshFile;
> @property (nonatomic, retain) NSString *iconFile;
>
> - (id)initWithData:(NSData*)xml;
>
>
> ----------------- Object.m
>
> @implementation Object
>
> @synthesize objectID;
> @synthesize mass;
> @synthesize elasticity;
> @synthesize renderMeshFile;
> @synthesize collisionMeshFile;
> @synthesize iconFile;
>
> #pragma mark Allocation/Deallocate
>
> - (id)initWithData:(NSData*)xml
> {
>        if (self = [super init])
>        {
>                        // in here we need to gets the info out of the
> dictioanary and into the object
>        }
>
>        return self;
> }
>
>
> - (void)dealloc
> {
>        [super dealloc];
>
> }
>
>
> But when I make this call, from another class,
>
> Object *myObject = [[Object alloc] initWithData:nil];
>
> I get this error. I don't get it.  I don't see why this is happening. It was
> working at one time, but all of the sudden this is what I get. I have
> rebuilt, completely, but am really stumped as to why this is happening.
>
>
> #0      0x942d98ae in ___forwarding___
> #1      0x942d9a12 in __forwarding_prep_0___
> #2      0x00009cdd in -[ObjectXMLReader
> parser:didStartElement:namespaceURI:qualifiedName:attributes:] at
> ObjectXMLReader.m:78
> #3      0x96349bd9 in _startElementNs
> #4      0x9148019a in xmlIOParseDTD
> #5      0x91458f08 in xmlParseChunk
> #6      0x96349337 in -[NSXMLParser parse]
> #7      0x00009c13 in -[ObjectXMLReader parseXMLData:parseError:] at
> ObjectXMLReader.m:56
> #8      0x00009645 in -[ObjectManager readObjectXMLFromFile:] at
> ObjectManager.m:52
> #9      0x00004ba4 in -[CyanideAppDelegate loadGameData] at
> CyanideAppDelegate.mm:122
> #10     0x00008dd6 in -[CyanideSplashScreenViewController viewDidLoad] at
> CyanideSplashScreenViewController.m:50
> #11     0x30ad12f8 in -[UIViewController view]
> #12     0x00004a3c in -[CyanideAppDelegate applicationDidFinishLaunching:]
> at CyanideAppDelegate.mm:100
> #13     0x30a5d51a in -[UIApplication performInitializationWithURL:asPanel:]
> #14     0x30a66062 in -[UIApplication _runWithURL:]
> #15     0x962b195e in __NSFireDelayedPerform
> #16     0x9425ab45 in CFRunLoopRunSpecific
> #17     0x9425acf8 in CFRunLoopRunInMode
> #18     0x31699d38 in GSEventRunModal
> #19     0x31699dfd in GSEventRun
> #20     0x30a5dadb in -[UIApplication _run]
> #21     0x30a68ce4 in UIApplicationMain
> #22     0x000023c4 in main at main.m:69
>
>
> Can anyone see or know why this is happneing?
>


It might be more interesting to see the source of ObjectXMLReader.m ...
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Weird Error (From: development2 <email@hidden>)

  • Prev by Date: Re: Weird Error
  • Next by Date: Re: Weird Error
  • Previous by thread: Re: Weird Error
  • Next by thread: Re: Weird Error
  • Index(es):
    • Date
    • Thread