There are already a number of issues with segmented controls in
toolbars, but I didn't find a solution to this one:
When the window is not in focus, the segmented control in the toolbar
looses all highlight (lo-light) behavior. The control should color
the selected segment with a lo-light
On Feb 21, 2008, at 18:22, Hank Heijink wrote:
I have a document-based application, and my NSDocument subclass
runs an experiment which amounts to invoking NSInvocations based on
certain conditions. These NSInvocations retain their arguments, and
the target of the NSInvocation is the NSDoc
I am sure this is easy and I am just missing something, but I want to
bind my integer attribute to an NSTextField. The data is displayed
correctly, but after I update the value in the text field and try to
save the changes back to my model. I get an error saying that the
update failed try
Aha. Just want I wanted to know. You're right, I should have tried it
first :)
Thanks,
Mike
On Feb 21, 2008, at 8:06 AM, Hamish Allan wrote:
On Thu, Feb 21, 2008 at 3:57 PM, Mike R. Manzano <[EMAIL PROTECTED]>
wrote:
I know about the pattern to shut the compiler up: create a category
On 22/02/2008, at 3:00 PM, Hank Heijink wrote:
I made NSInvocations because timing is critical and I didn't want to
spend the time constructing the call when it needs to be invoked. I
haven't profiled the difference yet though, so maybe the tradeof
isn't bad. I'll give it a whirl.
I'm no
> If you don't have layer backing turned on in the nib
> file the view
> loading machinery turns off layer backing after
> initWithFrame: is
> called.
Ah, that explains it!
>From my understanding (and the docs don't elaborate on
this much at all), I *don't* want to do that, since I
need to pr
On Feb 21, 2008, at 7:42 PM, Nir Soffer wrote:
The problem I have is this: when I close my document, it isn't
deallocated. If the invocations don't retain their arguments, that
problem is gone, but I do need to retain them. What's a good way to
solve this? I could release the NSInvocation
I've been using bindings for user preferences, but now I've gotten a little
more into the whole kvc/kvo thing, but have run into a problem:I have two
array controllers. Each bound to my controller (not an nscontroller, just my
main class), with a model key path pointing to arrays that are populate
Hi,
I have some draggable items that can be dropped outside of their
container to 'poof'-delete them. I don't want the drag image to slide
back after they're poofed (of course), but I do want them to slide
back if they're dropped inside their container.
However, whether to slide back or n
Hi Nathan,
If you move your layer code into awakeFromNib you should have much
better results.
If you don't have layer backing turned on in the nib file the view
loading machinery turns off layer backing after initWithFrame: is
called.
HTH,
-bd-
http://bill.dudney.net/roller/objc
On F
I am trying to use NSURLConnection to fetch a few small images (like
10k) from various websites. The connections are established and then
the connection:willSendRequest:redirectResponse: delegate method is
called and it freezes. It never times out that I know of, at least
the connection:didFailWi
I provide an initWithFrame: for my NSView subclass,
and as it is a stand-in for a Custom View in IB the
method is called. It does initialize all my instance
variables as expected.
However, when I try to turn my view into a
layer-hosting view with:
CALayer* rootLayer = [CALayer layer];
I have a Core Data app with an entity that contains a date attribute,
called startTime. I have a predicate defined as startTime >=
"today". If I apply that predicate to an array controller using
setFilterPredicate, it works fine. However, if I use the same
predicate with NSFetchRequest,
On Feb 18, 2008, at 16:59, Mei Fang Liau wrote:
I wrote a controller class inherited from NSObject, which contains
a outlet
with the main window (NSWindow) as the destination. This outlet is
used to
scan the main window's subviews and find all check boxes and store
them in
an array. Can I
Dear Quincey,
Yes, I have tried that already with the same experience as you. I needed
to rebind the column and to set its keypath to empty (as well as .self).
However this did not work either, got a lots of messages in the debugger
console and the table stayed empty.
Do you have any other ide
On Feb 21, 2008, at 4:27 PM, Chris Ryland wrote:
Other than sporadic mentions of problems hither and thither, I don't
see anyone complaining about using .xib (vs .nib) format much.
Hey Chris -
A NIB 3.0 file is actually just a NIB 2.x file with a XIB file
embedded. So, if you've been usin
On Feb 21, 2008, at 23:18, Alexander Hartner wrote:
I have two packages which are related, but not the same problem. A
server component and a client component. I have configured the
packages to use different package identifiers however as soon as I
install one package any previous installa
Other than sporadic mentions of problems hither and thither, I don't
see anyone complaining about using .xib (vs .nib) format much.
Does that mean they're safe to use? Any other experiences?
Thanks &
Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
_
You're right it turned out to be a focus issue.
I was looking into FirstResponder (before posting the question but it
didn't seem right), but as Ken Ferry pointed out, the issue was
actually on my computer: a preference setting where focus moves to
all objects, not just text fields. Plus th
I was kind of hoping to just get this simple thing going, and then I
could learn more cocoa from there. I'm quite familiar with frameworks
on the whole, but I need kind of an "in". I never could learn as well
from reading as from doing:) I was kind of hoping that this would be
quite a simpl
No. Every where you can provide an instance, you should be able to
provide a Class to.
For example, it's perfectly legal to register a Class as a
notification observer (and use a Class method as target).
It also perfectly legal to register a Class as a delegate and
implements Class method ins
Ross,
Thank you for filing the bug.
Indeed there is a bug in NSTextTab.
Fortunately, it only affects -tabStopType method. The actual instance
created works as a decimal tab.
Aki
On 2008/02/21, at 14:30, Ross Carter wrote:
I've filed a bug on this (5757951) but I hope there's a workaround.
On Feb 21, 2008, at 14:06, Ken Ferry wrote:
Hm, sorry if the docs confused you.. if you can point at the docs that
made you think this, it'd be great to have a bug.
There's:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/SubclassingNSView/chapter_6_section_2.html#/
I've filed a bug on this (5757951) but I hope there's a workaround.
The initializer for creating a NSTextTab of type NSDecimalTabStopType
is initWithAlignment:(NSTextAlignment)alignment location:
(CGFloat)location options:(NSDictionary *)options. There is no
NSTextAlignment for dec tabs, so
Anyone doing histogram equalization with CIImage? This was supported
under vImage, but there doesn't seem to be a corresponding CIFilter.
Thanks,
Eric
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moder
On 21 Feb 08, at 13:57, Nick Zitzmann wrote:
On Feb 21, 2008 AD, at 2:48 PM, Christian Schmitz wrote:
For example giving 12 and want to get a "Q" back and for providing
"Q" I
get a 12 back.
Of course it would be nice to know the option keys.
Is that possible?
Currently I use iGetKeys, but t
On 20 Feb 2008, at 18:07, Daniel Thorpe wrote:
Hey Nicko, thanks for getting back to me...
No problem!
I am having some problems with my kernel code however, which I've
changed as you suggested (I had already done this in my Obj-C
implementation)...
This is my kernel code:
...
I'd like to create an informal protocol where objects can have an
optional method.
Though you don't say which SDK you are targeting; if you're using Obj-
C 2.0 then you can also use a formal protocol and the @optional
directive.
Keith
___
Cocoa-
On Thu, Feb 21, 2008 at 1:46 PM, Kyle Sluder
<[EMAIL PROTECTED]> wrote:
> On Thu, Feb 21, 2008 at 2:41 PM, Ken Ferry <[EMAIL PROTECTED]> wrote:
> > What's guaranteed is that all init methods on a class will funnel into
> > one of the designated init methods. A subclasser should always
> > ov
Now, that being said, I'm not sure why you're getting the warning
about distinct ObjC types.
An API expecting an NSArray can be passed an NSMutableArray, the
converse however isn't true. Casting the return value of -
componentsSeparatedByString: to a mutable array won't make it one.
Keith
On Feb 21, 2008 AD, at 2:48 PM, Christian Schmitz wrote:
For example giving 12 and want to get a "Q" back and for providing
"Q" I
get a 12 back.
Of course it would be nice to know the option keys.
Is that possible?
Currently I use iGetKeys, but that is failing for a lot of cases.
The on
Hi,
is there a modern API which I can use to map between keys
For example giving 12 and want to get a "Q" back and for providing "Q" I
get a 12 back.
Of course it would be nice to know the option keys.
Is that possible?
Currently I use iGetKeys, but that is failing for a lot of cases.
Gruß
Ch
On Thu, Feb 21, 2008 at 2:41 PM, Ken Ferry <[EMAIL PROTECTED]> wrote:
> What's guaranteed is that all init methods on a class will funnel into
> one of the designated init methods. A subclasser should always
> override all designated initializers of the superclass (if he needs to
> do work at
I'd like to key-value observe a property of an NSManagedObject. I
tried to register an observer (in the init: method of my app's
controller) using "addObserver:forKeyPath:options:" but it doesn't
work because the observation is lost as my object gets dealloc'ed soon
after I register as an observ
Class methods are prefixed with a +, and I don't think
there ever was a documented +encodeWithCoder: method
of NSObject or any other class, so it looks like it
was simply a quirk of the runtime that this ever
worked at all.
Cheers,
Chuck
--- "A.M." <[EMAIL PROTECTED]> wrote:
> I have a DO-based
I have two packages which are related, but not the same problem. A
server component and a client component. I have configured the
packages to use different package identifiers however as soon as I
install one package any previous installation of the related package
is removed. It seems like
You were absolutely right. Thanks. A shame that push button is the
only one that provides this colored behavior for default. I could see
it being useful.
On Feb 21, 2008, at 3:29 PM, Ken Ferry wrote:
I think you're confusing the focus ring with the default button.
On 22/02/2008, at 7:41 AM, Nick Zitzmann wrote:
Just place it in either the Contents/MacOS or Contents/Resources
folder in your bundle & use NSBundle to get its path. It's pretty
simple, actually...
With the advent of code-signing, auxiliary tools should not be placed
in Contents/Resourc
Le 21 févr. 08 à 21:41, Nick Zitzmann a écrit :
On Feb 21, 2008, at 10:09 AM, Dave Verwer wrote:
This is unfortunate because it seems that it does exactly what I
need,
so I had the thought to bundle it inside my app package and use it
from there. I realise I could cobble together the core
On Feb 21, 2008, at 10:09 AM, Dave Verwer wrote:
This is unfortunate because it seems that it does exactly what I need,
so I had the thought to bundle it inside my app package and use it
from there. I realise I could cobble together the core audio
frameworks to do what I want as well but why re
Hi Daniel.
I think you're confusing the focus ring with the default button.
Default button:
http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGControls/chapter_19_section_3.html#//apple_ref/doc/uid/TP3359-DontLinkElementID_446
Focus ring:
http://developer.
I have a DO-based application which uses a Class object as a root
proxy under 10.4- it works as expected. Objective-C 2.0 seems to have
broken this option because Class no longer responds to -
encodeWithCoder:.
I am not able to think of a reason for this regression, but perhaps
the new dyn
Fair enough, but the root item is never represented graphically in a
table, so there wouldn't be a need to ask for its row height…?
Anyway, I filed a radar… we'll see what happens.
Mike Abdullah wrote:
Although the docs don't mention it for this method, quite often an
item of nil is used to re
Although the docs don't mention it for this method, quite often an
item of nil is used to represent the tree's root object. I would
suggest therefore returning the default height of a table cell.
Mike.
On 21 Feb 2008, at 19:32, John Stiles wrote:
My outline view can occasionally get multi-l
I would strongly recommend leaving Core Data alone until you're more
familiar with the rest of Cocoa. As the docs say, it makes use of many
other Cocoa technologies which are almost impossible to learn all at
once.
On 21 Feb 2008, at 19:14, John Gustafsson wrote:
Hi,
I have kind of a new
On Feb 20, 2008, at 16:19, Graham wrote:
Not sure if this is the only way, but you can implement the delegate
method:
- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:
(NSCell *)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn
*)aTableColumn row:(int)row mouseLoca
From what I read, the default (button in a view is outlined/shaded
in blue and is set as the button which responds to RETURN. I have a
serious of buttons (step 1, step 2, etc.), and I want the appropriate
button to be highlighted as the default when it is turn to do that
step. I used this c
Hi,
I'd like to key-value observe a property of an NSManagedObject. I
tried to register an observer (in the init: method of my app's
controller) using "addObserver:forKeyPath:options:" but it doesn't
work because the observation is lost as my object gets dealloc'ed soon
after I register a
On Thu, Feb 21, 2008 at 11:30 AM, Shamyl Zakariya <[EMAIL PROTECTED]> wrote:
> OK, sounds like I'm not out of the woods.
>
> Here's the trouble: I have some controls ( in my toolbar ) controlling
> a couple properties of the image view subclass. Specifically, a zoom
> factor and a tiling mode (
> I'm not sure -initWithCoder: is guaranteed to be called, and is
> certainly not the "proper" place to be performing object
> initialization after awaking from a nib.
What's guaranteed is that all init methods on a class will funnel into
one of the designated init methods. A subclasser should
Well, to finish this off, I just made some calls to initialize from
windowControllerDidLoadNib and averything's peachy, and no dependancy
on initWithCoder.
Shamyl Zakariya
- The fantabulous contrapulation of professor Horatio Huffnagel
On Feb 21, 2008, at 2:30 PM, Shamyl Zakariya w
My outline view can occasionally get multi-line entries, so I've
implemented -outlineView:heightOfRowByItem: in the delegate. Normally
this works like a charm.
Now I'm working on some code to support dragging and dropping items
between one outline view and another outline view. (For what it's
OK, sounds like I'm not out of the woods.
Here's the trouble: I have some controls ( in my toolbar ) controlling
a couple properties of the image view subclass. Specifically, a zoom
factor and a tiling mode ( this is just a quick-dirty app for viewing
compressed DDS textures. I've already w
On Feb 21, 2008, at 1:10 PM, Kyle Sluder wrote:
On Thu, Feb 21, 2008 at 2:04 PM, Adhamh Findlay
<[EMAIL PROTECTED]> wrote:
I've tried setting autoResizeMask to NSViewNotSizable, and turned off
all the automatic sizing options in IB, but the box still expands.
Is there a way to prevent the bo
Yes: #5757023
This is critical for any GC enabled app that wants to access iPhoto or
similar libraries. I included sample code too, hope that's fixed soon,
thanks.
Il giorno Feb 21, 2008, alle ore 6:00 PM, Corbin Dunn ha scritto:
Have you logged this as a bug yet?
thanks,
corbin
On Feb 2
On Thu, Feb 21, 2008 at 2:14 PM, John Gustafsson
<[EMAIL PROTECTED]> wrote:
> I have kind of a newbie question that I was hoping someone could help
> me with. I'm trying to learn Cocoa/Core Data coming from a different
> background and I got some help from a friend but we have struck out
> and
Wonderful! Now I have sane defaults and my controls bound to them have
the correct values.
Thanks for your help.
[EMAIL PROTECTED]
"finite=alright"
--David Byrne
On Feb 21, 2008, at 2:06 PM, Mike Abdullah wrote:
If the view's being loaded from a nib it's archived, so you need -
That makes sense, thank you.
[EMAIL PROTECTED]
"Such a theory has to be bizarre and elaborate, as well as being
stupid"
-- Jim Loy, regarding a hollow earth
On Feb 21, 2008, at 2:00 PM, Kyle Sluder wrote:
On Thu, Feb 21, 2008 at 1:36 PM, Shamyl Zakariya
<[EMAIL PROTECTED]> wro
On Thu, Feb 21, 2008 at 2:06 PM, Mike Abdullah
<[EMAIL PROTECTED]> wrote:
> If the view's being loaded from a nib it's archived, so you need -
> initWithCoder:
I'm not sure -initWithCoder: is guaranteed to be called, and is
certainly not the "proper" place to be performing object
initialization a
Hi,
I have kind of a newbie question that I was hoping someone could help
me with. I'm trying to learn Cocoa/Core Data coming from a different
background and I got some help from a friend but we have struck out
and can't figure out what to do next. The idea is very simple. I want
an array
On Thu, Feb 21, 2008 at 2:04 PM, Adhamh Findlay <[EMAIL PROTECTED]> wrote:
> I've tried setting autoResizeMask to NSViewNotSizable, and turned off
> all the automatic sizing options in IB, but the box still expands.
>
> Is there a way to prevent the box from expanding?
Sounds like NSTabView per
If the view's being loaded from a nib it's archived, so you need -
initWithCoder:
Mike.
On 21 Feb 2008, at 18:36, Shamyl Zakariya wrote:
I've written a subclass of NSImageView, and my intent was to set
some sane default values for some member vars in my initWithFrame:
( NSRect ) method.
H
On Thu, Feb 21, 2008 at 10:57 AM, Mike R. Manzano <[EMAIL PROTECTED]> wrote:
> I know about the pattern to shut the compiler up: create a category on
> NSObject with the method defined, but if I were to do that, wouldn't
> respondsToSelector: always return YES for that method, defeating the
> p
Greetings,
I've got an NSBox that I am trying to install into a tab view item.
Here's the code:
NSBox *boxView = [foo theBox];
[[tabView selectedTabViewItem] setView: boxView];
This works great as all the controls in the box appear, but the
boxView expands to take up the full frame of th
On Thu, Feb 21, 2008 at 1:36 PM, Shamyl Zakariya <[EMAIL PROTECTED]> wrote:
> Anybody know why it wouldn't be called? It doesn't appear to be
> misspelled.
Re-read the documentation here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/SubclassingNSView/chapter_6_sectio
To use it as a mutable array, you will have to create a mutable array
from the vanilla array returned by componentsSeparatedByString.
E.g.
NSMutableArray *listItems = [NSMutableArray array];
[listItems addObjectsFromArray: [list componentsSeparatedByString:@",
"]];
Now, that being said, I'
componentsSeparatedByString returns an NSArray, not an NSMutableArray.
You'll need to make a mutableCopy, like so:
NSMutableArray *listItems = [[[list componentsSeparatedByString:@","]
mutableCopy] autorelease];
If you don't autorelease your mutable array here, you'll have to
release it y
Hi Guys,
I'm trying to do this:
NSString *list = @"wrenches, hammers, saws";
NSArray *listItems = [list componentsSeparatedByString:@", "];
Which is straight out of the documentation and I want to use a
Mutable Array instead, but I get this warning:
warning: initialization from distinct Ob
I've written a subclass of NSImageView, and my intent was to set some
sane default values for some member vars in my initWithFrame:
( NSRect ) method.
However... initWithFrame simply isn't being called. I know the
instance is being instantiated ( it's the main view for a document
based app
69 matches
Mail list logo