I have a number of layers that use rotation animation about the Z-
axis. Whenever the animation(s) complete the layer returns to the
original state (zero rotational offset). I set the fillMode attribute
to be kCAFillModeForwards in order to preserve the layer in its
transformed state but
Hi,
I am trying to turn off the highlight color. I subclassed NSTableView
and NSTextAttachmentCell. In my tv-subclass I override -
(void)highlightSelectionInClipRect:(NSRect)theClipRect and use
clearColor to draw the selected rows which works. But I haven't found
the way to draw the text
Hi All,
Just curious to know, is it possible to listen to shoutcast radio stations
in Iphone ... what is the application it uses for this?
If it is posted in wrong forum sorry for the inconvenience caused.If
possible please give me information about the correct list.
Thanks in advance
Arnab
not the right forum, this is for discussing cocoa development on iPhone.
I used google
http://www.google.com/search?hl=enrls=com.microsoft%3A*q=google+iphone+shoutcast+itunes+store
Arnab Ganguly wrote:
Hi All,
Just curious to know, is it possible to listen to shoutcast radio stations
in
Just a reminder, hope to see you tonight.
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group
(CAWUG) is holding our next meeting Tuesday, November 11th, at 7:00
PM at the Apple Store on Michigan Ave.
Agenda:
- Introductions Announcements
- Your first
List:
Does anyone have experience intercepting the play/pause and rew/ff
(seek back / seek forward) keys on some keyboards? Particularly, the
MacBook / MacBook Pro keyboards?
These keys control iTunes and QuickTime just fine when they're
running but I'd like to intercept them myself
You also need to set it to not remove the animation on completion.
[animation setRemovedOnCompletion:NO]
-Matt
On Nov 11, 2008, at 1:00 AM, Michael A. Crawford wrote:
I have a number of layers that use rotation animation about the Z-
axis. Whenever the animation(s) complete the layer
You might want to check out this Active Record implementation:
http://github.com/aptiva/activerecord/tree/master
- Jason
On 11-Nov-08, at 8:41 AM, malcom wrote:
The program engine itself should run both on iPhone and Mac platform
so I can't use CoreData (and in fact the same thing is for
I am working from one of the numerous books in Obj C.
My question, which I have asked at another list, is about the method
init.
Firstly, here is the code, stripped somewhat of irrelevant
( hopefully ) code.
/* #import Foundation/Foundation.h */
#import stdio.h
#import objc/Object.h
On Nov 11, 2008, at 9:31 AM, Uli Kusterer wrote:
On 11.11.2008, at 17:04, Ken Tozier wrote:
I have a custom NSView subclass that contains, among other things,
an NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I tried setting up a KVO
I would also like to know this. I tried fiddling around with an as-
low-as-I-could-go CGEventTap a while ago to try and intercept them,
but they never showed up in the callback. Ditto on the volume and
eject keys.
I think these buttons may work on the same principle as secure
Here's another one to consider:
http://code.google.com/p/sqlitepersistentobjects/
It's similar to ActiveRecord, but is designed to be zero-
configuration. I tend to think of it as reverse-ActiveRecord because
instead of populating the object based on the database table, we
create the
On Nov 11, 2008, at 8:57 AM, Devon Ferns wrote:
Maybe he wants to use it where there is no Core Data i.e. iPhone.
A salient point - it's hard to tell sometimes, given the odd rules
surrounding the whole iPhone discussion on cocoa-dev thing. ;-)
OP, is this why?
--
I.S.
On Nov 11, 2008, at 12:01 PM, Bill Monk wrote:
This worked for me:
http://www.rogueamoeba.com/utm/archives/MediaKeys.m
Thanks, Bill, it looks promising. I was worried about the need for
being multiple-keyboard-layout-aware but if the keys are merely
defines in a header, it's probably
On Nov 11, 2008, at 12:35 PM, Kevin Gessner wrote:
I can give y'all some code if you're needing.
Sure, the more the merrier! :-)
--
I.S.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
You should derive your classes from NSObject, not from Object.
You normally don't have to #include objc/Object.h.
Where did you find such an example?
The alloc method basically does a calloc of the appropriate instance size.
The init method of NSObject does nothing.
It's good practive to always
On Nov 11, 2008, at 9:21 AM, Etienne Guérard wrote:
You should derive your classes from NSObject, not from Object.
You normally don't have to #include objc/Object.h.
Where did you find such an example?
It is from Steve Kochan's book ...which is basically an introduction
to Objective C.
Hello, all ...
I'm experiencing weird issues with addObserver / removeObserver. I
log when I add observers, as well as when I try to remove them, but I
sometimes (not always) get an exception when I remove an observer:
2008-11-11 10:05:49.939 Magnatune[1382:20b] creating and starting
So I was hoping someone else had figured this out. :-)
A quick look at this list's archive reveals this post ...
http://lists.apple.com/archives/cocoa-dev/2007/Aug/msg00499.html
... by yours truly, which was later followed by Rogue Amoeba's
aforementioned take on this. Look here for the
On Nov 11, 2008, at 12:40 AM, Alexander Reichstadt wrote:
Hi,
I am trying to turn off the highlight color. I subclassed
NSTableView and NSTextAttachmentCell. In my tv-subclass I override -
(void)highlightSelectionInClipRect:(NSRect)theClipRect and use
clearColor to draw the selected rows
On Nov 11, 2008, at 1:40 PM, Peter Maurer wrote:
So I was hoping someone else had figured this out. :-)
A quick look at this list's archive reveals this post ...
http://lists.apple.com/archives/cocoa-dev/2007/Aug/msg00499.html
... by yours truly, which was later followed by Rogue Amoeba's
I'm searching for a things like ActiveRecord for Ruby in Objective-C
(but I don't want to use Core-Data).
Anyone can point me to the right solution? I've taken a look at
http://www.cocoadev.com/index.pl?DataCrux but seems to be adbandoned.
Why would you be alright with using something like
Iceberg-Dev wrote:
I need to get a NSImage of the generic bundle icon. (Mac OS X 10.4 or
later)
I'm currently using this:
[[NSImage alloc] initWithContentsOfFile:@/System/Library/
CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns]
because:
- NSFileTypeForHFSTypeCode('BNDL') does
Sure it will but use an array controller to link up the array with the
table view.
Steven Riggs
On Nov 11, 2008, at 9:15 AM, Andrew wrote:
Hi, I have read some documents about the Cocoa Bindings. And I got a
question here for more comments.
If I use the cocoa binding technology in my
On Nov 11, 2008, at 10:35, John Zorko wrote:
2008-11-11 10:05:51.538 Magnatune[1382:20b] *** Terminating app due
to uncaught exception 'NSRangeException', reason: 'Cannot remove an
observer MagnatuneAppDelegate 0x11d3b0 for the key path
buffersEmpty from AudioStreamer 0x90fe00 because it
On Nov 11, 2008, at 6:17 PM, Etienne Guérard wrote:
Did you take a look at IconServices GetIconRef() function using one
of the generic Finder icons constant?
I did. That's part of the because: section.
On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote:
What are you really trying to
Maybe it's an illustrative example, not a real one.
Anyway you'd better stick to NSObject.
Object is used to implement the metaclass class hierachy inside the ObjC
runtime.
You normally don't play with it. ;)
EG
Message d'origine
De: [EMAIL PROTECTED] de la part de Michael
On Nov 11, 2008, at 12:16 PM, Etienne Guérard wrote:
Maybe it's an illustrative example, not a real one.
Anyway you'd better stick to NSObject.
Object is used to implement the metaclass class hierachy inside the
ObjC runtime.
You normally don't play with it. ;)
thanks for your input. I
I have a controller in which I setup a menu for a search field in a
toolbar. The search field is set to return the whole search string. I
have a procedure that looks basically like this:
-(void)setupSearchMenu
{
NSMenu *cellMenu = [[[NSMenu alloc] initWithTitle:@Search Menu]
autorelease];
On Tue, Nov 11, 2008 at 2:50 PM, Iceberg-Dev [EMAIL PROTECTED] wrote:
Standard Apple Plugins that use this icon. Yes, I'm sure.
Are you attempting to use this icon for your own purposes, like
plugins for your own app? If so, Apple used to provide a set of icon
templates in Photoshop format that
On Nov 11, 2008, at 3:16 PM, Etienne Guérard wrote:
Maybe it's an illustrative example, not a real one.
Anyway you'd better stick to NSObject.
Object is used to implement the metaclass class hierachy inside the
ObjC runtime.
You normally don't play with it. ;)
It is a real example, but it
Iceberg-Dev wrote:
On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote:
What are you really trying to illustrate with this icon? Are you
sure the Lego® block is the right thing to show?
Standard Apple Plugins that use this icon. Yes, I'm sure.
Perhaps I'm missing something, but why not then
I need to get a NSImage of the generic bundle icon. (Mac OS X 10.4 or
later)
I'm currently using this:
[[NSImage alloc] initWithContentsOfFile:@/System/Library/
CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns]
because:
- NSFileTypeForHFSTypeCode('BNDL') does not work. It
On Nov 6, 2008, at 10:49 AM, Matthew Mashyna wrote:
I have some square buttons along the top of a textured window. The
window does not have an NSToolbar. These buttons have images (pngs)
with transparent backgrounds on them. When I click on them on 10.5
they darken and look good. On 10.4
On Nov 11, 2008, at 9:39 PM, Kyle Sluder wrote:
On Tue, Nov 11, 2008 at 2:50 PM, Iceberg-Dev
[EMAIL PROTECTED] wrote:
Standard Apple Plugins that use this icon. Yes, I'm sure.
Are you attempting to use this icon for your own purposes, like
plugins for your own app?
No, I'm not. I just
As announced on Theocacao:
http://theocacao.com/document.page/597
=
Michael Jurewitz, Apple's Developer and Performance Tools Evangelist,
will presentIntroduction to iPhone Development at CocoaHeads Silicon
Valley this Thursday, November 13 at 7:00pm. This meeting will be at
The program engine itself should run both on iPhone and Mac platform
so I can't use CoreData (and in fact the same thing is for DataCrux).
I'm looking at sqlitepersistentobjects but seems to be in beta. Anyone
used it yet?
On Tue, Nov 11, 2008 at 1:52 PM, I. Savant [EMAIL PROTECTED] wrote:
I'm
Paul...thank you for that info. I was not aware there is a specific
OBJ-C mailing list, but will go there, for a few chapters, at any
rate!! :-)
Michael.
On Nov 11, 2008, at 12:44 PM, Paul Bruneau wrote:
On Nov 11, 2008, at 3:16 PM, Etienne Guérard wrote:
Maybe it's an illustrative
Hello all,
I'm having a bit of trouble with NSTokenFields and represented objects.
What I am trying to achieve is to create a predicate from text entered
in a token field. It goes like this:
User enters text, gets a completion if necessary, types tokenising
character, token created, user
Hi,
At first, I think just as you mentioned, and I want to file a bug too.
But the view being collapsed is not actually being collapsed, it is just
being set *HIDDEN*, and its size remains unchanged. Suppose the splitview is
horizontal and we have 2 views, leftView and rightView. We overrided
I noodled around with this for SousChef, and it's fairly straight
forward to get the events (I can provide code if desired). However
the problem I ran into was that I couldn't stop the events from also
going to iTunes like the QT player does. So its not too helpful since
a person using
On 11.11.2008, at 17:04, Ken Tozier wrote:
I have a custom NSView subclass that contains, among other things,
an NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I tried setting up a KVO observer
on NSWindw's firstResponder, but it appears
On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote:
Iceberg-Dev wrote:
On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote:
What are you really trying to illustrate with this icon? Are you
sure the Lego® block is the right thing to show?
Standard Apple Plugins that use this icon. Yes, I'm
On Tue, Nov 11, 2008 at 3:34 PM, Iceberg-Dev [EMAIL PROTECTED] wrote:
On Nov 11, 2008, at 9:44 PM, Gregory Weston wrote:
Perhaps I'm missing something, but why not then retrieve the icon for the
file rather than for the type?
I don't want to display a custom icon if someone eventually
Hi
I have a custom NSView subclass that contains, among other things, an
NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I tried setting up a KVO observer on
NSWindw's firstResponder, but it appears that windows don't report
this change.
I'm working on a System Preferences Pane. It opens fine on some
computers, but on other Macs (all running 10.5.5), the preference pane
refuses to load and simply hangs, spitting the following into the
console:
11/9/08 8:38:50 PM [0x0-0x31031].com.apple.systempreferences[369] Sun
Nov 9
You should use the highlighting provided by the focus ring.
-[NSView setFocusRinType:]
Message d'origine
I have a custom NSView subclass that contains, among other things, an
NSTableView and need to know when focus changes happen so I can
highlight the the view correctly. I
On Nov 11, 2008, at 10:27 AM, Dave DeLong wrote:
I would also like to know this. I tried fiddling around with an as-
low-as-I-could-go CGEventTap a while ago to try and intercept them,
but they never showed up in the callback. Ditto on the volume and
eject keys.
I haven't gone that
Did you take a look at IconServices GetIconRef() function using one of the
generic Finder icons constant?
Message d'origine
De: [EMAIL PROTECTED] de la part de Iceberg-Dev
Date: mar. 11/11/2008 17:36
À: cocoa-dev@lists.apple.com
Objet : How are we supposed to retrieve the
Hello
I have custom NSView, and want to draw whole NSImage inside some
custom rectangular area of NSView.
I tried to use [NSImage drawInRect:...] but result does not fit
desired rectangular area of NSView.
My code:
- (void) setPreviewWidth:(float)width height:(float)height
{
I don't know anything about the old QuickTime APIs. But I would
suggest the new way to do this is use Core Animation.
Thanks for the suggestion!
I wasn't too keen on using layers for this, and fortunately, it turned
out that I can still rotate single QuickTime tracks successfully. And
I
On Nov 11, 2008, at 3:17 PM, Mr. Gecko wrote:
Short Question How can I get the value and set the value for NSSlider?
-doubleValue and -setDoubleValue:.
Nick Zitzmann
http://www.chronosnet.com/
___
Cocoa-dev mailing list
On 11 Nov 08, at 14:17, Mr. Gecko wrote:
Short Question How can I get the value and set the value for NSSlider?
NSSlider is a subclass of NSControl, so it inherits all the getter and
setter methods from that class. The two you're probably most
interested in are floatValue and
Short Question How can I get the value and set the value for NSSlider?
___
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
Hi Alexander,
Your code will draw the image in maxScanArea. You should probably
look for a bug elsewhere.
I like to replace complex drawing with simple color fills when
debugging drawing location issues. At least it limits what could go
wrong.
-Ken
On Tue, Nov 11, 2008 at 2:17 PM, Alexander
Hello List,
I'm searching for a things like ActiveRecord for Ruby in Objective-C
(but I don't want to use Core-Data).
Anyone can point me to the right solution? I've taken a look at
http://www.cocoadev.com/index.pl?DataCrux but seems to be adbandoned.
Thanks
I'm using the quick time framework in my App (QTKit/QTKit.h) for
QTMovies and QTMovieView etc...
Do I need to distribute it with my app (i.e. add a new Copy build
phase), or can I safely assume that everyone with OS X Tiger has the
framework already?? (My app will require Tiger at least)...
On 12 Nov 2008, at 9:17 am, Mr. Gecko wrote:
Short Question How can I get the value and set the value for NSSlider?
Since NSSlider is a subclass of NSControl it supports the substantial
list of methods there to get/set its value.
hth, Graham
Lots of the same answers and it works, thanks.
On Nov 11, 2008, at 4:29 PM, Graham Cox wrote:
On 12 Nov 2008, at 9:17 am, Mr. Gecko wrote:
Short Question How can I get the value and set the value for
NSSlider?
Since NSSlider is a subclass of NSControl it supports the
substantial list
If I'm correct, it's a standard framework that everyone has. That
being said, I've never used it myself so wait until an expert confirms
or rebuked what said.
Nate
On Nov 11, 2008, at 5:28 PM, Jean-Nicolas Jolivet [EMAIL PROTECTED]
wrote:
I'm using the quick time framework in my App
Hi, Ken
Thank you for answer.
But simple color filling was first what I have tried.
When I add following code inside -(void)drawRect method, it fills
exactly maxScanArea:
[[NSColor whiteColor] set];
[NSBezierPath fillRect:maxScanArea];
But -(void)drawInRect:maxScanArea places
Maybe he wants to use it where there is no Core Data i.e. iPhone.
This was announced a few months back for storing in sqlite
http://code.google.com/p/sqlitepersistentobjects/
I haven't used it myself since I'm not sure if it's been enhanced to
automatically alter the table if you have the
Hi, I have read some documents about the Cocoa Bindings. And I got a
question here for more comments.
If I use the cocoa binding technology in my application, my
application must fully follow a Model-View-Controller paradigm. The views
display and edit that data, and controllers mediate
An application of mine, FunctionFlip, does just this - it eats
special key presses. I use a CGEventTap at kCGSessionEventTap. To get
system events, you have to tell the tap to listen to NX_SYSDEFINED
events. Then, if you want to stop the event, just return null from
your callback. I can
On Nov 11, 2008, at 3:28 PM, Jean-Nicolas Jolivet wrote:
Do I need to distribute it with my app (i.e. add a new Copy build
phase), or can I safely assume that everyone with OS X Tiger has the
framework already?? (My app will require Tiger at least)...
If a framework is in
On Nov 11, 2008, at 5:17 PM, Alexander Shmelev wrote:
- (void) drawRect:(NSRect)rect
{
// Drawing image in preview
if (image) {
NSRect imageRect;
imageRect.origin = NSZeroPoint;
imageRect.size = [image size];
Actually, I have one idea why this happens.
Maybe because usually width=8, height = 14 so [self bounds] returns
NSRect(0,0,8.64,14.64). And
maxScanArea = NSRect(0.32, 0.32, 8, 14). So there can be some
approximation to integer value, not float.
But it it is true, how to deal with this?
On
Two questions:
1. What is the most likely approach for allowing tabs from NSTabViews
to be dragged between tab views, possibly on different windows?
Ideally, I'd have subclasses like a DraggableTabItem and a
DraggableToTabView or whatever which would enable this...
I'd like to be able
Thanks to both of you!
I guess I don't have to copy it after all! :)
Jean-Nicolas Jolivet
Jean-Nicolas Jolivet wrote:
I'm using the quick time framework in my App (QTKit/QTKit.h) for
QTMovies and QTMovieView etc...
Do I need to distribute it with my app (i.e. add a new Copy build
phase),
Yes, it is called outside my custom preview code. And values of
maxScanArea, [self bounds] are correct.
Also if I replace [image drawInRect:...] with solid color fill
[NSBezierPath fillRect:maxScanArea], everything works as I expect.
On 12.11.2008, at 1:53, Andy Lee wrote:
On Nov 11, 2008,
If you look at the QTKit documentation, it will tell you what's been available
since when. Some things have been there since 10.3, while others were added in
10.5. However, I would not recommend distributing Apple's (or anyone else's)
software with your app unless you have their permission.
Ok I'm not sure if it worked, but when I change the priority in my app
it stays the same for that app even after I relaunch my app so that is
a good sign. Would you know of a good way to test it out so I know if
it works?
Thanks,
Mr. Gecko
___
On 12 Nov 2008, at 9:56 am, Alexander Shmelev wrote:
Actually, I have one idea why this happens.
Maybe because usually width=8, height = 14 so [self bounds] returns
NSRect(0,0,8.64,14.64). And
maxScanArea = NSRect(0.32, 0.32, 8, 14). So there can be some
approximation to integer value, not
hmm it appears to say 0 for virtual pc. I wonder what virtual pc does
because it seems to work.
On Nov 11, 2008, at 5:19 PM, Mr. Gecko wrote:
Ok I'm not sure if it worked, but when I change the priority in my
app it stays the same for that app even after I relaunch my app so
that is a
The pertinent methods, from my app's delegate. It listens for both
regular and special key presses, so modify accordingly.
CGEventRef
myCGEventCallback(CGEventTapProxy proxy, CGEventType type,
CGEventRef event, void *refcon)
{
// Paranoid sanity check.
if ((type !=
On Tue, Nov 11, 2008 at 5:58 PM, Frank D. Engel, Jr. [EMAIL PROTECTED] wrote:
1. What is the most likely approach for allowing tabs from NSTabViews to be
dragged between tab views, possibly on different windows?
Don't subclass NSTabView for this; it's not the expected UI and it
won't work.
A priority of 0 is the default unless a process was launched by a process
that had a different priority, and then it would have that priority as well.
I'm afraid I don't follow what you're doing and what values you're seeing,
based on your use of that and my app. You can use the Unix command ps
You might want to check out OmniDataObject from the OmniGroup. It
works on both the Mac and iPhone and is used in both OmniFocus Mac and
OmniFocus iPhone
http://www.omnigroup.com/developer/
-Colin
On Tue, Nov 11, 2008 at 2:47 AM, malcom [EMAIL PROTECTED] wrote:
Hello List,
I'm searching for a
Hi Frank-
1. What is the most likely approach for allowing tabs from
NSTabViews to be dragged between tab views, possibly on different
windows?
You could look at PSMTabBarControl... the most up-to-date work on it
is in the maccode repository at Google Code:
On 11 Nov 08, at 15:17, Charles Steinman wrote:
If you look at the QTKit documentation, it will tell you what's been
available since when. Some things have been there since 10.3, while
others were added in 10.5. However, I would not recommend
distributing Apple's (or anyone else's) software
Here's a peculiar little case that I hope is easy to resolve.
Here's the case I ran into:
I had bound an NSTextField to an attribute of an object. The interface
at that point implied that the user could update the value in that
field, then immediately click a button to perform an action. The
Hi,
I'm having trouble converting an object to a BOOL. In my window
controller, I'm observing the model keyPath isDirty which is a BOOL.
version 1
- (void) observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
On 12/11/2008, at 11:08 AM, Andre Masse wrote:
I'm having trouble converting an object to a BOOL. In my window
controller, I'm observing the model keyPath isDirty which is a BOOL.
BOOL is not an object type. You need to use [myObject boolValue] to
get a BOOL.
--
Rob Keniger
On Tue, Nov 11, 2008 at 4:54 PM, Andrew Farmer [EMAIL PROTECTED] wrote:
On 11 Nov 08, at 15:17, Charles Steinman wrote:
If you look at the QTKit documentation, it will tell you what's been
available since when. Some things have been there since 10.3, while others
were added in 10.5. However,
[ [ change objectForKey:NSKeyValueChangeNewKey ] boolValue ]?
it's an object, not a bool, it prints as a bool because the object knows
it's a bool, but you are just testing the object pointer which isn't 0x00
Andre Masse wrote:
Hi,
I'm having trouble converting an object to a BOOL. In my
On 12 Nov 2008, at 12:08 pm, Andre Masse wrote:
Hi,
I'm having trouble converting an object to a BOOL. In my window
controller, I'm observing the model keyPath isDirty which is a BOOL.
version 1
- (void) observeValueForKeyPath:(NSString *)keyPath
That's because you're getting an object pointer back, and any object pointer
except for nil evaluates to true. Assuming you know it will only be one object
inserted at a time, you'd want to do [[change
objectForKey:NSKeyValueChangeNewKey] boolValue].
Cheers,
Chuck
- Original Message
Thanks a lot, this the method I was looking for.
Andre Masse
On Nov 11, 2008, at 20:11, Rob Keniger wrote:
BOOL is not an object type. You need to use [myObject boolValue] to
get a BOOL.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
If you want to make sure that the validation error is bound to the
window regardless of how commitEditing is implemented you need to call
commitEditingWithDelegate:didCommitSelector:contextInfo: and then in
the method you pass in as the didCommitSelector you can check to see
if there were
On Nov 11, 2008, at 8:08 PM, Andre Masse wrote:
I'm having trouble converting an object to a BOOL. In my window
controller, I'm observing the model keyPath isDirty which is a BOOL.
version 1
- (void) observeValueForKeyPath:(NSString *)keyPath
I was looking everywhere for BOOL methods conversion and couldn't find
any. Now I know why: BOOL is not an object type. Not sure how I could
have found [myObject boolValue] though... Now that I know about it, I
searched the documentation reference and found that is a method
implemented by
Thanks for pointing that out. I'll check the archives.
Andre Masse
On Nov 11, 2008, at 20:28, Jim Correia wrote:
I know this isn't the question you asked, nor the root of the
problem you are having, but by way of saving you future pain, that
is not the correct way to write an -
For the sake of followers of this thread and after having read the
archives, here's the final version:
static NSString *GHMainWindowControllerIsDirtyObservingContext;
...
- (void) observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
I need an asynchronous alert panel. My impression is that apple
doesn't consider this an alert if it's aynchronous.
A couple ideas occur to me for how to solve this:
1) Put the alert in a separate thread. But these seems to be a lot of
effort to get around a purposeful design, and thus
I'm working on a fairly simple application which will display a list of n
items. Right now, I'm displaying the items in an NSTableView, but I would
like to do something with a bit more pizazz.
Instead of a multi-column table, I want to make a single column list where
each entry in the list custom
I have a table view which is contained in a split view
I set the data source for the table view
numberOfRowsInTableView is called
tableView:objectValueForTableColumn:row is called for each row.
later I change the data source.
numberOfRowsInTableView is called
On Nov 11, 2008, at 17:21, Ashley Clark wrote:
If you want to make sure that the validation error is bound to the
window regardless of how commitEditing is implemented you need to
call commitEditingWithDelegate:didCommitSelector:contextInfo: and
then in the method you pass in as the
On Tue, Nov 11, 2008 at 8:36 PM, Andre Masse [EMAIL PROTECTED] wrote:
I was looking everywhere for BOOL methods conversion and couldn't find any.
Now I know why: BOOL is not an object type. Not sure how I could have found
[myObject boolValue] though... Now that I know about it, I searched the
Thanks a lot for the doc pointer.
Andre Masse
On Nov 11, 2008, at 21:12, Michael Ash wrote:
Key-Value Observing is built on top of Key-Value Coding, and KVC is
documented to box non-object scalars using NSNumber and NSValue:
On Nov 11, 2008, at 09:12, Dan Birns wrote:
I need an asynchronous alert panel. My impression is that apple
doesn't consider this an alert if it's aynchronous.
A couple ideas occur to me for how to solve this:
1) Put the alert in a separate thread. But these seems to be a lot
of effort
1 - 100 of 106 matches
Mail list logo