• 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: NSOutlineView recursive calling crashing app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView recursive calling crashing app


  • Subject: Re: NSOutlineView recursive calling crashing app
  • From: email@hidden
  • Date: Sun, 23 Jun 2002 10:50:25 -0500

Well on second thought.. I think the fact that it is recursing so many times (4000+) is an indication
of a different problem.. I think you are getting into an endless recursive loop .. basically a child
is pointing (thru one or more intermediate children) back to its parent .. or sibling 1 (s1) has as
a child relation 2 (r2) who in turn points back to s1 .. endless looping..

I think NSOutline does need a nice FLAT data space .. certainly it can not handle
self-looping data structures if that is the case..

<shrug>

Good luck!

-SJM



On Sunday, June 23, 2002, at 08:12 AM, Greg Hulands wrote:

Sorry I forgot to mention that. It is sigsegv. How would I see if it is a
retain and release issue? The object should already be retained by the
outline view as is is in the first tier of the heirarchy. When I step
through it, it can access the correct object. It recursively calls the
internal method of NSOutlineView 4055 times before crashing.

Any hint is appreciated.

Regards,
Greg


On 23/6/02 11:06 PM, "email@hidden" <email@hidden> allegedly
made the following allegations:


What is it crashing with?? I.e. what signal? SEGV?

Have you used the debugger on it ??

If you are getting SEGV's maybe the problem is that you have a
retain/release issue?
I.e. some of the objects within the NSOutlineview aren't being retained
and hence
later on when you go and access it the app crashes??

Just some ideas..

-SJM

On Sunday, June 23, 2002, at 07:51 AM, Greg Hulands wrote:

Hi,
I have an outline view that represents relationships of data. I have it
so
that you can traverse the relationship graph. When you have stepped
into the
relationship hierarchy so that you are now looking at the relationships
of
the first relationship it recursively calls the methods [NSOutlineView
_expandItemEntry:addIntoExpandSet:expandChildren].

Eg

e1
| r1 relates to e2
| r2 relates to e3
e2
| r2.1 relates to e1
e3

When expanded when it crashes the tree looks like this.

e1
| r1
|-- r2.1
|---- r1
| r2
e2
| r2.1
e3

Is this a bug with NSOutlineView in that you are not able to show the
same
object in the heirachy twice?

Any info on this would be greatly appreciated.

Regards,

Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSOutlineView recursive calling crashing app (From: Greg Hulands <email@hidden>)

  • Prev by Date: Scroller position
  • Next by Date: [OT] PC Magazine says Obj-C is dead
  • Previous by thread: Re: NSOutlineView recursive calling crashing app
  • Next by thread: recovering question
  • Index(es):
    • Date
    • Thread