Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9

2016-11-03 Thread Graham Cox
> On 4 Nov 2016, at 2:00 AM, Konidaris Christos wrote: > > The problem was that my NIBs also contained NSViewController objects for some > of their subviews. Changing these controllers to plain NSObjects eliminated > the crashes. > > Thank you for pointing me to the correct

Re: [Solved] Crash in addSubview: when compiled with SDK > 10.9

2016-11-03 Thread Konidaris Christos
>> crash happens at the following point in the program: >> >> activityPaneController = [[ESC_ActivityPaneController alloc] >> initWithNibName: @“ESC_ActivitySideBox" bundle: nil]; >> [superV addSubview: activityPaneController.view]; > > To be precise, thi

Re: Crash in addSubview: when compiled with SDK > 10.9

2016-11-02 Thread Konidaris Christos
;> crash happens at the following point in the program: >> >> activityPaneController = [[ESC_ActivityPaneController alloc] >> initWithNibName: @“ESC_ActivitySideBox" bundle: nil]; >> [superV addSubview: activityPaneController.view]; > > To be precise, this i

Re: Crash in addSubview: when compiled with SDK > 10.9

2016-11-02 Thread Quincey Morris
lloc] initWithNibName: > @“ESC_ActivitySideBox" bundle: nil]; > [superV addSubview: activityPaneController.view]; To be precise, this is two points in the program (or more than two, if we decide to be pedantic). > Thread 0 Crashed:: Dispatch queue: com.apple

Re: Crash in addSubview: when compiled with SDK > 10.9

2016-11-02 Thread Konidaris Christos
Zombie objects and Malloc Scribble are checked in Diagnostics. – Chris > On 2 Nov 2016, at 19:05, Jens Alfke wrote: > > Have you run with Zombies enabled? Or with the address sanitizer? > > —Jens ___ Cocoa-dev mailing list

Re: Crash in addSubview: when compiled with SDK > 10.9

2016-11-02 Thread Jens Alfke
Have you run with Zombies enabled? Or with the address sanitizer? —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Crash in addSubview: when compiled with SDK > 10.9

2016-11-02 Thread Konidaris Christos
Hi All, Our application crashes inside AppKit when compiled with any SDK > 10.9. The crash happens at the following point in the program: activityPaneController = [[ESC_ActivityPaneController alloc] initWithNibName: @“ESC_ActivitySideBox" bundle: nil]; [superV ad

Re: addsubview

2012-04-24 Thread Keary Suska
On Apr 20, 2012, at 9:19 AM, koko wrote: Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow

Re: addsubview

2012-04-24 Thread koko
On Apr 20, 2012, at 12:13 PM, Keary Suska wrote: On Apr 20, 2012, at 9:19 AM, koko wrote: Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called

Re: addsubview

2012-04-24 Thread Keary Suska
On Apr 20, 2012, at 1:02 PM, koko wrote: Does this code work when you substitute NSPDText with a canned cocoa UI object? Yes. I created an NSButton in the same method, added it and it displays. Then it is most likely the case that the issue is with the NSPDText, that it is not

Re: addsubview

2012-04-24 Thread Martin Wierschin
I have searched high and low and can find no reason for a subview to not display. Is this a trivial problem not worthy of list comment or is it truly a difficult problem that cannot be dealt with as easily as more mundane topics found here? You've waited only about 90 minutes since your

Re: addsubview

2012-04-24 Thread Jerry Krinock
On 2012 Apr 20, at 09:49, koko wrote: Is this a trivial problem not worthy of list comment or is it truly a difficult problem … ? When no one replies, it's usually the latter, but it might be something easy. When a programmatically-created subview doesn't show for me, it's usually because

Re: addsubview

2012-04-24 Thread Scott Ribe
On Apr 20, 2012, at 10:49 AM, koko wrote: I have searched high and low and can find no reason for a subview to not display. Is this a trivial problem not worthy of list comment or is it truly a difficult problem that cannot be dealt with as easily as more mundane topics found here? Are

Re: addsubview

2012-04-24 Thread Aaron Burghardt
. On Apr 20, 2012, at 9:23 AM, koko wrote: Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow

Re: addsubview

2012-04-24 Thread Peter Ammon
-viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow But I never see thev iew! - (void)makeAndWrapViews { NSRect frame = [self frame]; frame.size.width = 288; frame.size.height = 259; m_text = [[NSPDText alloc] initWithFrame:frame

Re: addsubview

2012-04-24 Thread koko
a great, modern (85?) environment. -koko On Apr 20, 2012, at 9:23 AM, koko wrote: Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called

Re: addsubview

2012-04-24 Thread Graham Cox
On 21/04/2012, at 2:49 AM, koko wrote: Ah, ain't Cocoa a great, modern (85?) environment. Don't blame the framework for your own incompetence. But I never see thev iew! - (void)makeAndWrapViews { NSRect frame = [self frame]; frame.size.width = 288; frame.size.height = 259;

Re: addsubview

2012-04-20 Thread koko
Good questions. As an experiment, in the same method in which I create and add the subview which is not displaying I create an NSButton using the same frame as for the subview. I add the NSButton and it displays. So, I am sure the NSTabviewItem view is correct. As to the subview, I added a

Re: addsubview

2012-04-20 Thread koko
Here is the code that creates and adds the subview The method -makeAndWrapViews is in the custom class of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow But I never see thev iew! - (void

Re: addsubview

2012-04-20 Thread koko
of the NSTabViewItem view. I do get -viewDidMoveToSuperview when addSubview is called. When the tab is clicked I do get viewdidMoveToWindow But I never see thev iew! - (void)makeAndWrapViews { NSRect frame = [self frame]; frame.size.width = 288; frame.size.height = 259; m_text

addsubview

2012-04-19 Thread koko
I get the view for an NSTabViewItem. To this view I add a subview. In the debugger displaying the subviews of view I see the subview. When the NSTabViewItem displays the subview is not being shown. The view does display. The subview is not set hidden in IB. Why would I not see the

Re: addsubview

2012-04-19 Thread Keary Suska
On Apr 19, 2012, at 5:34 PM, koko wrote: I get the view for an NSTabViewItem. To this view I add a subview. How do you (in code) identify the correct NSTabViewItem, retrieve the view and add the subview? What is the frame of the subview? In the debugger displaying the subviews of view I

Re: animating addSubview with iOS4

2011-03-05 Thread Matt Neuburg
On Fri, 04 Mar 2011 14:30:12 +0100, Andreas Grosam agro...@onlinehome.de said: So it seems, there is a problem performing UIViewAnimationOptionTransition... animations for the UIView transitionWithView:... class method, and possibly for transitionFromView:... invoked from -viewWillAppear: and

Re: animating addSubview with iOS4

2011-03-04 Thread Andreas Grosam
On Mar 3, 2011, at 8:16 PM, Matt Neuburg wrote: Except that as Robert Vojta told you (and as Luke Hiesterman has clearly stated on other occasions) it is wrong to assume that viewDidLoad means that the view is now in the *interface*, or even that it is *about* to be put into the

Re: animating addSubview with iOS4

2011-03-03 Thread Martin Linklater
Thanks for your replies guys - that makes a lot of sense now 8) On 2 Mar 2011, at 12:06, Andreas Grosam wrote: On Mar 2, 2011, at 12:42 PM, Andreas Grosam wrote: - (void) viewDidLoad { [super viewDidLoad]; // Create the button: // ... [self

Re: animating addSubview with iOS4

2011-03-03 Thread Matt Neuburg
On Thu, 03 Mar 2011 10:32:18 +, Martin Linklater mslinkla...@gmail.com said: Thanks for your replies guys - that makes a lot of sense now Except that as Robert Vojta told you (and as Luke Hiesterman has clearly stated on other occasions) it is wrong to assume that viewDidLoad means that the

Re: animating addSubview with iOS4

2011-03-02 Thread Martin Linklater
Thanks Luke I did manage to find a solution. I was creating and calling the transition from within 'viewDidLoad'. If I move the call to 'transitionWithView' out of 'viewDidLoad' and into a different method the transition works fine. Animating properties work when called from 'viewDidLoad', but

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
That's because viewDidLoad doesn't mean it's going to be displayed now. It just informs you that view was loaded. You have to use viewWillAppear/viewWillDisappear or any other method where you know that view is visible = you'll see animations. Sent from my iPhone On 2.3.2011, at 10:44, Martin

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
I meant viewWillAppear/viewDidAppear, not disappear ... Sry ... Sent from my iPhone On 2.3.2011, at 11:36, Robert Vojta rob...@izyapps.com wrote: That's because viewDidLoad doesn't mean it's going to be displayed now. It just informs you that view was loaded. You have to use

Re: animating addSubview with iOS4

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 11:37 AM, Robert Vojta wrote: I meant viewWillAppear/viewDidAppear, not disappear ... Sry ... This might not work also. If the boolean parameter 'animation' in viewWillAppear equals NO, no animation will be started. This is especially true when the view will appear

Re: animating addSubview with iOS4

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 12:42 PM, Andreas Grosam wrote: - (void) viewDidLoad { [super viewDidLoad]; // Create the button: // ... [self performSelector:@selector(addButtonWithAnimation) withObject:nil afterDelay:0.0]; } or - possibly more efficient: - (void)viewDidLoad {

animating addSubview with iOS4

2011-03-01 Thread Martin Linklater
Hi - I'm having trouble getting Core Animation to animate a UIButton appearing on my parent view. My old code did this: create button [self.view addSubview:newButton]; The button appeared straight away and works fine. Now, I'm trying to animate the appearance of this button and I just can't

Re: animating addSubview with iOS4

2011-03-01 Thread Luke Hiesterman
You can only animate properties documented as animatable. Try adding your subview to its superview with an alpha of 0.0 and then animating the alpha to 1.0. Luke On Mar 1, 2011, at 8:32 AM, Martin Linklater mslinkla...@gmail.com wrote: Hi - I'm having trouble getting Core Animation to

addSubview: and positioning at the bottom of a NSWindow

2009-08-03 Thread Stefano Pigozzi
Hello, I'm trying to do something simple, I have a NSWindow containing a NSTableView that resizes with the with the window. When I click on one element I want to display additional information in a subView that I'm adding with [[theWindow contentView] addSubview:infoView]; The problem is

Re: addSubview: and positioning at the bottom of a NSWindow

2009-08-03 Thread Chase Meadors
Consider using NSDrawer. It can contain a content view (i.e. your info view) and can be attached to any side of a parent window, and be shown or hidden. If you don't want to use this, however, just grab the content view's frame, NSRect r = [[window contentView] frame] and then call:

Re: addSubview bottleneck

2009-01-25 Thread Michael Ash
On Sat, Jan 24, 2009 at 5:29 PM, Twisted Theory twisted.theory.co...@gmail.com wrote: Hi, I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is

Re: addSubview bottleneck

2009-01-25 Thread douglas welton
Hi Josh, I would echo Andreas' advice and tell you to not use NSViews to accomplish this task. I would suggest that you take a closer look at the problem domain and re-factor along the lines of the data you manage and the drawn representation of that data. NSViews are great containers

addSubview bottleneck

2009-01-24 Thread Twisted Theory
Hi, I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of nodes in the tree is large: adding the subviews takes a

Re: addSubview bottleneck

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:29 Uhr schrieb Twisted Theory: I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of