Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 22:33, Quincey Morris wrote: > On Dec 20, 2014, at 13:50 , H Miersch wrote: >> >> not sure when layout occurs, but as i say below, that method is called from >> drawrect > > From -[NSView drawRect:]?? You most definitely should not be compu

Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 20:39, Quincey Morris wrote: > On Dec 20, 2014, at 12:08 , H Miersch wrote: >> >> if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the >> subview, the window and its view behave normally, but the subview doesn't >>

Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 20:39, Quincey Morris wrote: > On Dec 20, 2014, at 12:08 , H Miersch wrote: >> >> if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the >> subview, the window and its view behave normally, but the subview doesn't >>

view problems

2014-12-20 Thread H Miersch
hi. i have a window with a custom view in it. I add another view in code and then i add a couple of constraints to centre the new view in its superview. so far so good. if i DON'T call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on my subview, it appears, but the superview (and wit

@class

2013-03-21 Thread H Miersch
hi. what exactly does @class do? and what does "forward declaration" mean? ___ 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 cocoa-dev-admins(at)lists.

Re: Objective-C Question

2013-03-11 Thread H Miersch
On 11. Mar 2013, at 20:21, Dave wrote: try myDict = [super newDict]; ___ 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 cocoa-dev-admins(at)lists.app

Re: variable problem is driving me nuts

2012-10-28 Thread H Miersch
then why does Xcode complain about an unused result? this is just another example of a TOTALLY USELESS error message. anyway, i fixed it, and now it works. thanks. On 28. Oct 2012, at 11:56, Roland King wrote: > > On 28 Oct, 2012, at 7:50 PM, H Miersch wrote: > >> ok, it

Re: variable problem is driving me nuts

2012-10-28 Thread H Miersch
ok, it looks like i've sorted the original problem. but here's the next one: i have this line: for (i = 0; i++; i < count) {…} in the app delegate. Xcode keeps giving me this warning: expression result unused. WTF? that is correct syntax for a for loop, isn't it? so then why do i keep getting

variable problem is driving me nuts

2012-10-27 Thread H Miersch
hi. in my current project i have this line in the header for the app delegate: NSMutableArray *clients; in the app delegate itself, there's this line, in applicationDidFinishLaunching: clients = [[NSMutableArray alloc] init]; that works as expected. so far so good. but later, in another metho

Re: saving images

2012-07-21 Thread H. Miersch
On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: > > On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: > >> i just started a new ios project where i want to download images using >> NSimage's initwithcontentsofURL: method. >> now i also want to write those imag

saving images

2012-07-21 Thread H. Miersch
hi. i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method. now i also want to write those images to permanent storage, but how do i do that? as far as i can tell, NSImage has no method for writing images to disk. is there something i mis

Re: A color well in a table view?

2012-06-11 Thread H Miersch
012 13:53:49 +0100, H. Miersch said: > >> In my Mac app I have a table view which so far only displays text and >> numbers. Now I'd like to put color wells in one column (to supply colors >> for the lines in the diagram) and checkboxes in another (to decide >> wheth

A color well in a table view?

2012-06-07 Thread H. Miersch
In my Mac app I have a table view which so far only displays text and numbers. Now I'd like to put color wells in one column (to supply colors for the lines in the diagram) and checkboxes in another (to decide whether each line should be drawn or not). Can I do that? If so, what's the best way t

Re: Basic Question

2012-05-09 Thread H. Miersch
On 9. May 2012, at 17:58, koko wrote: > > On May 9, 2012, at 10:57 AM, Bill Bumgarner wrote: > >> or otherwise in the responder chain > > I grok that ... thanks. what does "grok" mean? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

@-directives

2012-03-08 Thread H. Miersch
hi. is there a list of @-directives (like @class, @property and @synthesize) somewhere out there? ___ 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 coc

Re: textfield problem

2012-03-04 Thread H. Miersch
On 3. Mar 2012, at 10:49, Ken Thomases wrote: > If the window doesn't have a resize box or title bar -- that is, you're using > NSBorderlessWindowMask -- then the NSWindow implementation of > -canBecomeKeyWindow returns NO. i gave the window a title bar (which doesn't appear when used as a she

Re: textfield problem

2012-03-03 Thread H. Miersch
> Is anything written to console when the panel is loaded or when you attempt > to start editing in the text field? no console output. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: textfield problem

2012-03-03 Thread H. Miersch
> Is the text field configured with Refuses First Responder? no. > Does the panel have a title bar or resize indicator -- not when it's running > as a sheet, but in its style mask? See the documentation for -[NSWindow > canBecomeKeyWindow]. as i said in my previous email, i re-did it using a

Re: textfield problem

2012-03-03 Thread H. Miersch
> Did you use a NSPanel for the sheet? Use a NSWindow instead, since NSPanels > can have special first-responder behavior. yes, i did. and today i deleted the panel and recreated it with a window instead of a panel. unfortunately, that didn't solve the problem :-( ___

Re: textfield problem

2012-03-03 Thread H. Miersch
> Do you have a value binding for the field? no, i don't really know how to use bindings. > If so, is "Conditionally sets editable" checked? i went in there and "Conditionally sets editable" was checked but greyed out. so i turned on the value binding and unchecked "Conditionally sets editable"

textfield problem

2012-03-02 Thread H. Miersch
hello. i have a problem with a text field that won't accept any input. the textfield is one of three on a panel that appears only when the input is needed. I activate the panel with this line:[app beginSheet:Sheet modalForWindow:mainWindow modalDelegate:self didEndSelector:NULL contextInfo:

Re: Xcode - An Apple Embarrassment

2012-03-01 Thread H. Miersch
> Xcode is used exhaustively within Apple, makes you think that they have an incentive to get it right, right? so what's the problem? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: sudden errors - fixed

2012-02-28 Thread H. Miersch
On 28. Feb 2012, at 10:01, Roland King wrote: > Move the ViewController import into the AppController.m file and put > > @class ViewController; > > instead. that fixed the appcontroller, thanks. looks like i have a lot to learn... ___ Cocoa-dev ma

Re: sudden errors

2012-02-28 Thread H. Miersch
i just ran a little test: i went into my appcontroller.h and turned the #import "ViewManager.h" line into a comment, then tried to build. result: EXACTLY the same errors. it's like that line isn't even there. WTF? ___ Cocoa-dev mailing list (Cocoa-dev

Re: sudden errors

2012-02-28 Thread H. Miersch
On 28. Feb 2012, at 0:54, Keary Suska wrote: > Are you saying that you have not made any changes whatsoever to the project > in any way, nor did you change the version of Xcode you were using, but you > get a slew of errors when you clean/compile? i was editing Viewmanager.m, and .h, but i did

Re: sudden errors

2012-02-27 Thread H. Miersch
On 27. Feb 2012, at 23:01, H. Miersch wrote: > hi. > my project used to build OK, until today. now xcode keeps throwing errors > like this at me: > > Unknown type name 'ViewManager' > > yes, i import ViewManager.h, and no, i didn't change any dec

sudden errors

2012-02-27 Thread H. Miersch
hi. my project used to build OK, until today. now xcode keeps throwing errors like this at me: Unknown type name 'ViewManager' yes, i import ViewManager.h, and no, i didn't change any declarations. is this a bug in Xcode? like i said, until sometime today this used to build ok. what a

Re: allow users to opt-out of iCloud

2012-02-23 Thread H. Miersch
On 21. Feb 2012, at 8:13, Martin Hewitson wrote: > Dear list, > > If an app uses iCloud to sync data between machines, should we provide the > user a check-box to opt-out of iCloud syncing? Is there are recommended best > practice here? What are others doing? from a user's point of view, i'd

splitviews and subviews

2012-02-18 Thread H. Miersch
hi. in my project i have a splitview that can contain one or more custom views where i do my drawing. what happens when i send a setNeedsDisplay: message to the splitview? will it send the message on to its subviews or do i have to handle that myself?

Re: Custom UIView drawing but can't figure out when/where it's loading

2012-02-15 Thread H. Miersch
>> Or is my installation of Xcode screwed up? > > Probably not. Why would you think that. It's not as unlikely as it sounds. i had an issue where xcode would crash so often it became impossible to get anything done. even loading a workspace would be enough to make it crash. reinstalling xcode

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
just had another surprise: i inserted NSLogs into the method that initializes the array and into -numberOfItemsInComboBox, trying to see the contents of my array and find out why -numberOfItemsInComboBox returns zero. the surprise was that -numberOfItemsInComboBox is called BEFORE the method tha

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
Did you try sending -reloadData to the combo box after setting up the data source and before trying to access items in the combo box? No, because I set up the data source in IB. My theory is that there's something wrong with the array. Either it isn't initialized properly or the methods can't

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
It appears you are sending -selectItemAtIndex: to the combo box, Correct. I tell it to select the first item (index 0). And when I put the list if items in the nib file (no data source) it works. But this morning I quickly inserted an nslog to find out how big the symbols array is, and it

NSComboBox problem in 10.6.2

2010-03-18 Thread H. Miersch
hi. I have a window with 3 comboboxes. one of them uses a data source. the problem is that it keeps throwing an exception, and i can't find out why. I've put the following methods in my appcontroller: -(NSInteger)numberOfItemsInComboBox:(NSComboBox *)aComboBox { return (NSInteger)[symbol