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
On 20. Dec 2014, at 20:39, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote:
if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the
subview, the window and its view behave normally, but the subview
On 20. Dec 2014, at 20:39, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote:
if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the
subview, the window and its view behave normally, but the subview
On 20. Dec 2014, at 22:33, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Dec 20, 2014, at 13:50 , H Miersch hmier...@me.com wrote:
not sure when layout occurs, but as i say below, that method is called from
drawrect
From -[NSView drawRect:]?? You most definitely should
On 11. Mar 2013, at 20:21, Dave d...@looktowindward.com 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
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
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 r...@rols.org wrote:
On 28 Oct, 2012, at 7:50 PM, H Miersch hmier...@me.com wrote
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
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
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 images to permanent storage, but how do i do
:
On Thu, 7 Jun 2012 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
whether each line should
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
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 do not
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
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
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,
and
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 :-(
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
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
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
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
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
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
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
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
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 declarations. is
this a bug in Xcode?
like i
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 say
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?
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
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
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
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
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
33 matches
Mail list logo