Hi
I have a dynamically created table with one editable column (page
number), but when I change the number and hit return, my assigned
handler never gets called.
Here's how the cell is defined:
pageCell = [[NSTextFieldCell alloc] init];
[pageCell setEditable: YES];
[pageCell setTarget:
Hi,
In Leopard, pressing ⌘? automatically activates the Help menu.
Unfortunately, this means the ⌘? shortcut cannot be assigned to
anything else. In my application, the ⌘? shortcut needs to perform a
different action to the pre-built one. (It is a full-screen
application, help is written
Thanks Kyle
I just tried your suggestion, but no luck. I read your links but I'm
not sure how they apply. I'm hoping to avoid getting fancy with the
text editor and doing tons of configuration etc. Basically a i need is
when a user hits return in an editable cell, it calls my supplied
Just a quick reminder...
The allowable message size is limited. If you need to post something
larger than 25K, please just post a link.
The mailing list software catches larger posts and flags them for
moderation. They always get rejected.
Sorry for the trouble.
Scott
[moderator]
On Mon, Oct 13, 2008 at 2:13 AM, Ken Tozier [EMAIL PROTECTED] wrote:
Seems like it should be pretty straightforward. Anyone see what I'm doing
wrong?
Have you sent the column [pageColumn setEditable:YES]?
http://cocoadev.com/index.pl?SubclassedNSTextFieldCellTargetAction
I am developing an app built around Image Kit.
Specifically, I have implemented the code in:
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
ImageKitProgrammingGuide/
And I have some questions going beyond the guide
(1) When I use flipImageHorizontal or
I am developing an app built around Image Kit.
Specifically, I have implemented the code in:
(http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
ImageKitProgrammingGuide/)
And I have some questions going beyond the guide
(1) When I use flipImageHorizontal or
The NDA is still in effect, so this can't be discussed publicly.
New list guidelines will be available when the new NDA is available to
developers.
Please re-read http://developer.apple.com/iphone/program/.
Thanks
scott
[moderator]
On 12-Oct-08, at 7:28 PM, Mike Westerfield wrote:
The NDA is still in effect.
Please re-read http://developer.apple.com/iphone/program/. The new
list rules will be posted when the new program terms are.
For the moment this is still not for public discussion on this list.
Thanks
scott
[moderator]
On 12-Oct-08, at 12:36 PM, J. Todd Slack
The title says it all really - is there a way to get notified about
selection changes in a NSCollectionView? The docs appear to indicate
that this is not possible, but that seems to be a very obvious need,
so it's surprising.
tia,
Graham
___
On 13/10/2008, at 12:38 AM, Benjamin Dobson wrote:
Hi,
In Leopard, pressing ⌘? automatically activates the Help menu.
Unfortunately, this means the ⌘? shortcut cannot be assigned to
anything else. In my application, the ⌘? shortcut needs to perform
a different action to the pre-built
Le 10 oct. 08 à 20:04, Uli Kusterer a écrit :
On 10.10.2008, at 07:15, Graham Cox wrote:
On 10 Oct 2008, at 11:30 am, j o a r wrote:
Most apps use just the name, but I've never liked that and I
support your idea of using the bundle identifier. Makes a lot of
sense.
Yep, seemed to make
On Oct 13, 2008, at 1:26 AM, Graham Cox wrote:
The title says it all really - is there a way to get notified about
selection changes in a NSCollectionView? The docs appear to indicate
that this is not possible, but that seems to be a very obvious need,
so it's surprising.
tia,
Graham
On Oct 13, 2008, at 7:02 PM, Graham Cox wrote:
Well... I'm not sure! Perhaps I was just over-thinking it. On
reflection it seems like an ordinary to-one relationship having a
setXXX and XXX pattern. Which is how I originally saw it - but then
when it didn't work I thought it must be
On Mon, Oct 13, 2008 at 7:02 AM, Graham Cox [EMAIL PROTECTED] wrote:
- (void)observeValueForKeyPath:(NSString*) keyPath ofObject:(id)
object change:(NSDictionary*) change context:(void*) context
{
#pragma unused(context)
NSLog(@observed change, path = %@, object = %@,
On 13 Oct 2008, at 7:23 pm, Nathan Kinsinger wrote:
On Oct 13, 2008, at 1:26 AM, Graham Cox wrote:
The title says it all really - is there a way to get notified about
selection changes in a NSCollectionView? The docs appear to
indicate that this is not possible, but that seems to be a
Hi,
I have a little problem with scroll views. I have a scroll view (name it
child) which is inside another scroll view (name it father). When I try to
scroll scrollview child, only scrollview father scrolls...
Do you know how handle this kind of scrollview hierarchy ?
Best regards,
Quentin
Hi,
I'm new to the list -and to cocoa-, and I don't know if what I want to
do is possible: I'm writing a plugin for a previous existent
application made in carbon, the application will take over the old app
behavior, and for that, it needs to replace the menu with a new one...
I read
Use a CGEventTap for the keystroke capturing, and the NSWorkspace
class to get the info you need about the frontmost app. Writing it to
a file is trivial.
Dave
On Oct 13, 2008, at 5:16 AM, apple apple wrote:
I need to write a keystroke logger for Mac OS X. I am debating which
Isn't there a race condition there? Can't the thread exit before the
observer is added?
--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
I've got a almost complete Cocoa document-based app done. The
almost centers just on my need for Thread-friendly AppleScript,
which NSAppleScript is not .. so, enter appscript.
Dug around and found ASTranslate which handily generates appscript
code based on my input AppleScript code.
2008/10/13 Alex Blaj [EMAIL PROTECTED]
Hello everyone,
A beginners question: I have a window with several NSTextFields and I would
like to implement textDidChange: for all of them (the behaviour would be
different for each field). What is the standard solution for this
situation? I can
What is the current going rate for Cocoa programmers in the USA $/hour?
___
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
FYI: the system will hide keyboard input from you in password fields
(as well as any input in Terminal if the user turns on Secure
Keyboard Entry).
On Mon, Oct 13, 2008 at 7:24 AM, Dave DeLong [EMAIL PROTECTED] wrote:
Use a CGEventTap for the keystroke capturing, and the NSWorkspace class to
Note that this technic will not be able to catch secured events:
http://developer.apple.com/technotes/tn2007/tn2150.html
Le 13 oct. 08 à 16:24, Dave DeLong a écrit :
Use a CGEventTap for the keystroke capturing, and the NSWorkspace
class to get the info you need about the frontmost app.
Shouldn't it be:
{id: 1, name: @Front}
{id: 2, name: @Sports}
{id: 3, name: @Opinion}
{id: 4, name: @Living}
{id: 4, name: @Calendar}
note the '@'
Chaitanya
On 13-Oct-08, at 2:29 PM, Ken Tozier wrote:
Hi
I have a popup in a table cell I'm trying to bind, programatically,
to a simple array
Thanks for the response. However, I have already deleted the help
menu. Until this works, I have the shortcut as ⌘9 for testing
purposes. This works fine. Unfortunately, as soon as I change it to
⌘?, pressing the keys makes nothing happen. Literally, nothing - it
doesn't even beep, as it
what bothers you about that being KVC-compliant? NSIndexSet is just an
immutable object no different from ... NSString. yes it sort of
represents a sparse array, but it's just a one-to-one relationship
with the NSCollectionView, each NSCollectionView can have a
selectionIndexes property
I'm re-sending this, since it seems to have been truncated completely
by the time it got to the list. Don't know what happened; the copy in
my Sent mailbox looks just peachy.
-
I'm helping someone with a problem concerning NSComboBox whose
contents come from a binding to an
Hi
I have a popup in a table cell I'm trying to bind, programatically, to
a simple array of NSDictionaries and want to display a single field
from each dictionary as the menu text. What I'm getting instead is the
entire dictionary serialized as a menu item. Here's how I'm doing the
this is rather off-topic for this list.
please stick to technical discussions.
On 13-Oct-08, at 10:56 AM, Richard Somers wrote:
What is the current going rate for Cocoa programmers in the USA $/
hour?
___
Cocoa-dev mailing list
On Oct 13, 2008, at 11:44 AM, Daniele Basile wrote:
I have two thread, the main thread and the secondary thread. In main
thread I manage my
application, but secondary thread manage some events. That because
manage these events in
the main thread is slow. There is way to manage event loop
Your best bet is to override:
- (void)textDidEndEditing:(NSNotification *)notification
The tableview is always set to be the field editor's delegate. Look
for NSReturnTextMovement from [[[notification userInfo]
objectForKey:@NSTextMovement] integerValue];.
corbin
On Oct 12, 2008, at
Hi Robert,
Thanks for your reply. What I would like to have in this particular case is
a few text fields that, when edited, change the selection of a tableview. So
I wondered if there's a classic approach to this issue, as I can imagine I'm
not the only person that wants to have, for example,
While I'm not familiar with bindings, I don't think there's a
problem with having a datasource as well as the bindings - the usual
datasource methods for supplying the table with data can probably be
missing or stubs.
To clarify -- there isn't a problem with having the datasource setup
On Oct 13, 2008, at 08:19, Randall Meadows wrote:
I'm helping someone with a problem concerning NSComboBox whose
contents come from a binding to an NSArrayController, and is set to
autocomplete.
The behavior: Window opens with combobox populated from its
binding. Let's say the contents
On 13 Oct 2008, at 9:39 pm, Roland King wrote:
what bothers you about that being KVC-compliant? NSIndexSet is just
an immutable object no different from ... NSString. yes it sort of
represents a sparse array, but it's just a one-to-one relationship
with the NSCollectionView, each
On Oct 11, 2008, at 7:01 AM, Chris Idou wrote:
If I've got a regular NSTableView and NSArrayController, where and
when do I do what so that it can initiate drags?
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
- With and Without Bindings, Bookmarks
mmalc
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group
(CAWUG) is holding our next meeting Tuesday, October 14th, at 7:00 PM
at the Apple Store on Michigan Ave.
Agenda:
- Introductions Announcements
- Jon on iPhone development A.N. (After NDA)
-
I've another n00b Cocoa question: How can I wait for a thread to finish
without depending on a flag that may be reset and set before the thread
i'm waiting for has time to check it?
Take a look at NSConditionLock in Foundation.
-Ben
___
Cocoa-dev
On Oct 13, 2008, at 9:32 AM, Scott Ribe wrote:
Isn't there a race condition there? Can't the thread exit before the
observer is added?
Well, you can register for the notification with 'nil' for the
object. That registers for all thread termination notifications. You
can do that before
On Oct 13, 2008, at 5:18 AM, Esteban Lorenzano wrote:
Hi,
I'm new to the list -and to cocoa-, and I don't know if what I want
to do is possible: I'm writing a plugin for a previous existent
application made in carbon, the application will take over the old
app behavior, and for that, it
On Oct 9, 2008, at 7:06 AM, Jim Marschke wrote:
I want a Pull Down PopupButton in my toolbar. I've added a one in
IB and as long as the type is set as Pop Up (not a Pull Down) all is
well. When I change it to Pull Down I see repeated errors in the
console:
TestApp(85454,0xb0103000)
Hi all,
I've added Apple's sample LoginItemsAE class to autolaunch an app I've built
for Tiger and Leopard. However, the app fails to compile when I add
LoginItemsAE.c to the app target, throwing over 3000 syntax and
conflicting types errors here:
AppKit.h Foundation.h NSObjCRuntime.h
I
Hi everyone. I am fairly new to Cocoa, so I apologize if this is a very
basic question (but after searching for awhile I still can't find an
answer). Anyway, I am wondering how I can create a function that will run
at intervals. What the function would do is scan which applications are
open,
Hi all,
Let me start off by saying, I am new to cocoa and objective c programming.
Any help is greatly appreciated.
The Error:
Unacceptable type of value for to-many relationship: property = id;
desired type = NSSet; given type = NSCFString; value = 1001.
My main goal here is to have core data
Another month goes by and there is absolutely no response from the
Apple about the problem, even negative one like there's no problem
or get lost. I don't know what I do wrong that I am being totally
ignored by the company I let to earn few thousands bucks.
I dared to write an article and
You can catch all keyboard events with a KEXT, since your operating in
the kernel youll catch events that go to password fields as well. If
you want you can even inject or modify events.
See IOHIKeyboard's _keyboardEventAction hook.
Check out NSTimer, NSTimeInterval, and NSRunLoop
On Oct 13, 2008, at 10:47 AM, Pierce Freeman wrote:
Hi everyone. I am fairly new to Cocoa, so I apologize if this is a
very
basic question (but after searching for awhile I still can't find an
answer). Anyway, I am wondering how I can create
On Oct 13, 2008, at 4:02 PM, Eric Lee wrote:
On Oct 13, 2008, at 10:47 AM, Pierce Freeman wrote:
Hi everyone. I am fairly new to Cocoa, so I apologize if this is a
very
basic question (but after searching for awhile I still can't find an
answer). Anyway, I am wondering how I can create a
You can - in Interface Builder - create any menu item you want with
whatever keyboard shortcut you want. How did you specify ⌘9 as a
shortcut? Just add a new menu item to any of your menus, change it's
title to Help, and Control-drag from the new item to an object (a
file) which you want
On Oct 13, 2008, at 1:58 PM, Adam Strzelecki wrote:
Another month goes by and there is absolutely no response from the
Apple about the problem, even negative one like there's no problem
or get lost. I don't know what I do wrong that I am being totally
ignored by the company I let to earn
On Mon, Oct 13, 2008 at 11:21 AM, Benjamin Dobson
[EMAIL PROTECTED] wrote:
Thanks for the response. However, I have already deleted the help menu.
Until this works, I have the shortcut as ⌘9 for testing purposes. This works
fine. Unfortunately, as soon as I change it to ⌘?, pressing the keys
On Mon, Oct 13, 2008 at 8:18 AM, Esteban Lorenzano [EMAIL PROTECTED] wrote:
I'm new to the list -and to cocoa-, and I don't know if what I want to do is
possible: I'm writing a plugin for a previous existent application made in
carbon, the application will take over the old app behavior, and
On Oct 13, 2008, at 08:58, Mark Scardigno wrote:
My main goal here is to have core data application that implements an
NSBrowser view;
You've got a number of conceptual problems here, complicated by the
fact that Core Data is not a good place to start if you have no
experience with
I have some old NSAnimation based code that I'd like to update to use
Core Animation.
Since BasicCocoaAnimations [1] does essentially what I want to do (at
least for starters) I am using that as a starting point.
[1] http://developer.apple.com/samplecode/BasicCocoaAnimations/index.html
I need to be notified when a row of an NSOutlineView was clicked, and
find out which row. Do I need to subclass it? Just thought I'd ask,
since I've read that new Cocoa programmers might tend to subclass more
than they ought.
The NSOutlineViewSelectionDidChangeNotification is not
I've been assigned to work on my company's Mac product, which includes
a Status Item. One of the things we've noticed is that if you click on
a neighboring status item (single click to pop open its menu), and the
hover over ours, our menu doesn't open.
Contrast this with the Apple status
Hi James,
On Oct 13, 2008, at 6:23 PM, James Walker wrote:
I need to be notified when a row of an NSOutlineView was clicked,
and find out which row. Do I need to subclass it? Just thought I'd
ask, since I've read that new Cocoa programmers might tend to
subclass more than they ought.
Wow, this is my problem described exactly. Is there a way to complete
the run loop so the animation will run during the original call to
changeRightView? I have a feeling I'm missing an important concept
here. Thanks for all the help.
- First call to changeRightView:
- turns on
On Mon, Oct 13, 2008 at 3:20 PM, Ken Thomases [EMAIL PROTECTED] wrote:
On Oct 13, 2008, at 9:32 AM, Scott Ribe wrote:
Isn't there a race condition there? Can't the thread exit before the
observer is added?
Well, you can register for the notification with 'nil' for the object. That
On Mon, Oct 13, 2008 at 9:23 PM, Rick Mann [EMAIL PROTECTED] wrote:
I've been assigned to work on my company's Mac product, which includes a
Status Item. One of the things we've noticed is that if you click on a
neighboring status item (single click to pop open its menu), and the hover
over
Tito Ciuro wrote:
Hi James,
On Oct 13, 2008, at 6:23 PM, James Walker wrote:
I need to be notified when a row of an NSOutlineView was clicked, and
find out which row. Do I need to subclass it? Just thought I'd ask,
since I've read that new Cocoa programmers might tend to subclass more
On 14 Oct 2008, at 1:19 pm, James Walker wrote:
Thanks... Hmm, that will usually do the right thing, but I'm not
sure it will always do what I want. Consider this sequence of events:
1. Row 5 is clicked.
2. Row 2 is shift clicked, resulting in rows 2, 3, 4, 5 being
selected.
3. Row 3 is
On Mon, Oct 13, 2008 at 9:23 PM, James Walker [EMAIL PROTECTED] wrote:
I need to be notified when a row of an NSOutlineView was clicked, and find
out which row.
See these methods:
-setAction:
-setTarget:
-clickedRow
Mike
___
Cocoa-dev mailing list
hi, list,
I have a cmd-line application and also a GUI application, when
cmd-line app get specified information from low-level service, it will
launch the GUI app to tell user that something happens. but the low-level
service maybe send the specified info multiple times. so if the GUI app is
On Mon, Oct 13, 2008 at 3:42 PM, JB [EMAIL PROTECTED] wrote:
Hi all,
I've added Apple's sample LoginItemsAE class to autolaunch an app I've built
for Tiger and Leopard. However, the app fails to compile when I add
LoginItemsAE.c to the app target, throwing over 3000 syntax and
conflicting
On Oct 13, 2008, at 12:42 PM, JB wrote:
I've added Apple's sample LoginItemsAE class to autolaunch an app
I've built
for Tiger and Leopard. However, the app fails to compile when I add
LoginItemsAE.c to the app target, throwing over 3000 syntax and
conflicting types errors here:
AppKit.h
On 13 Oct 2008, at 10:24 pm, Roland King wrote:
well it looked fine to me, that's what I'd have written if I tried
that out. The last thing I'd probably do before reporting it as a
bug is hook up another test button in the interface to a method
which just logged the current value of the
On Oct 13, 2008, at 9:45 PM, XiaoGang Li wrote:
I have a cmd-line application and also a GUI application, when
cmd-line app get specified information from low-level service, it will
launch the GUI app to tell user that something happens. but the low-
level
service maybe send the specified
On Oct 13, 2008, at 11:16 PM, Martin Redington wrote:
I've got an NSBrowser, and a secondary view whose value depends on the
current selection in the NSBrowser.
[...]
I seem to be capturing everything so far, except for the case where
the selection is extended by holding down shift and the up
Does anyone know if you can use this mechanism for dotted values, or does it
have to be a value local to the object?
For example, could you say that field a depends on b.c? I'm trying to do
that but it doesn't seem to work or me.
___
On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee [EMAIL PROTECTED] wrote:
On Oct 13, 2008, at 11:16 PM, Martin Redington wrote:
I've got an NSBrowser, and a secondary view whose value depends on the
current selection in the NSBrowser.
[...]
I seem to be capturing everything so far, except for the
Hi everyone,
I'm getting the following error in the run log of my Garbage-Collected
app:
object 0x1481f60 with 0 retain-count passed to CFMakeCollectable
It's not firing an exception, so how can I find out what object is
causing this problem?
--
Rob Keniger
Does anyone know if you can use this mechanism for dotted values, or does
it have to be a value local to the object?
For example, could you say that field a depends on b.c? I'm trying to
do that but it doesn't seem to work or me.
Yes, you can. I'm doing it in at least one of my classes like
Hi Rob,
You can put a break point on asl_send. This is the function that
does the logging.
-Ken
On Mon, Oct 13, 2008 at 9:55 PM, Rob Keniger [EMAIL PROTECTED] wrote:
Hi everyone,
I'm getting the following error in the run log of my Garbage-Collected app:
object 0x1481f60 with 0
On 14/10/2008, at 3:09 PM, Ken Ferry wrote:
You can put a break point on asl_send. This is the function that
does the logging.
Thanks, Ken, I'll give that a try.
--
Rob Keniger
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
77 matches
Mail list logo