i have a core data app that supports both real time events and user
interaction. some of the user interactions can generate an undo stack
similar to the following:
beginUndoGroup
beginUndoGroup
core data action
core data action
endUndoGroup
myAction
endUndoGroup
i'm having a problem with core data and undo. here is the simplified
situation. i've got subclasses of NSManagedObject: object A and
object B. object A has a to-one relationship to object B. the
reciprocal relationship in object B is a to many relationship. i.e.,
object B can refer to multiple
At 12:23 PM -0700 3/19/10, kvic...@pobox.com wrote:
if i have an NSTextView in a sheet and open the find panel, the
buttons remain disabled. however, the find commands from the menu
work fine. is the find panel not supposed to work if the key window
is a sheet? or is this a known bug? any
if i have an NSTextView in a sheet and open the find panel, the
buttons remain disabled. however, the find commands from the menu
work fine. is the find panel not supposed to work if the key window
is a sheet? or is this a known bug? any suggestions as to how to get
the buttons to be properly e
i'd like to do "xcode type completion" for a NSTextView that i
display in a sheet. by "xcode type completion" i mean:
multi-column display
reduce selection with subsequent typing
escape cancels completion
i don't beleive the current cocoa completion supports this and that
kyle,
thanx for the response. see below for a followup question.
At 10:36 PM -0500 12/26/09, Kyle Sluder wrote:
On Sat, Dec 26, 2009 at 5:24 PM, kvic...@pobox.com wrote:
however, if the user drags an object to the trash icon, and then
subsequently drags to and drops on the (popped) opened
i've implemented -draggedImage:endedAt:operation: and i check if the
operation is an NSDragOperationDelete to detect drags to the trash,
and if so, i then appropriately delete the dragged object from my
app's document.
this all works fine as long as the user drags the object to the trash
icon
i don't know if this is your problem or not, but i don't see the red
underline when i "accade" until i type a word delimeter (e.g. a space
or comma) after it. do u perhaps need to make sure the string u r
passing to the spell checker has appropriate beginning and ending
delimeters?
ken
At 1
i need to disable opening any files via the "Open Recent" menu items
until the user has specified some information that i save in my app's
prefs. this situation can occur if the user has deliberately or
accidentally deleted the prefs. now, i can (and do) override
-[NSDocumentController openDocu
i have a multi-document, multi-window app and i'm getting ready to
use NSSplitView for the first time.
from reading the docs and searching at cocoadev, i don't see how to
get the current position of the divider so that i can save it, and
later restore it on subsequent launches of my app/docume
with a 32 bit app, when i hit a breakpoint in gdb, i could select a
stack frame and enter the following into the gdb console:
(gdb) po *(int *)($ebp+)
where was 8 to see the receiver of the message, 16 to see the
first "meaningful" parameter, etc.
however, i'm not building a 64 bit
At 12:09 PM -0600 8/1/09, Scott Ribe wrote:
> i'm using pointer to pointer (sometimes called handles) because that
is what is required when using the usb aspects of the IOKit as
demonstated in apple's sample code.
FYI, Ken's right. The IOUSB stuff is odd-looking. You have instance vars of
t
At 6:31 PM -0700 7/31/09, Shawn Erickson wrote:
On Fri, Jul 31, 2009 at 3:39 PM, kvic...@pobox.com wrote:
where interface and device are declared as follows:
@property ( assign, nonatomic) IOUSBDeviceInterface300** device;
@property ( assign, nonatomic
At 5:01 PM -0600 7/31/09, Nick Zitzmann wrote:
On Jul 31, 2009, at 4:39 PM, kvic...@pobox.com wrote:
these errors don't happen every time and i've yet to be able to
determine a pattern that causes them. i realize that this is some
sort of memory corruption problem, but i'm at a
(i'm not sure if this is the right list for this question or not, as
i am developing a cocoa application using IOKit. if this isn't the
right list, could someone please tell me the right list. thanx.)
i'm just starting on developing a core data document base app that
talks to a usb device. som
i'm building a 64bit app.
in response to USB input, i create and post an application defined
event. for the data1 field, i pass the address of an
NSMutableDictionary as follows:
... data1: (NSInteger)dataDict ...
in my application object's sendEvent override, i'm only getting (via
[
At 6:57 PM -0700 6/29/09, Martin Wierschin wrote:
i'm not happy that the framework is changing the name of my menu
item from "Show SpellingS" (as i've specified in IB) to "Show
Spelling and Grammar". is there some way to globally "fix" this? (i
know i can provide my overrides of showGuessPanel:
in my app, i use a NSTableView to let the user specify
headers/footers for use in reports. a row in the table corresponds to
a single header/footer line. a single header/footer line is an
NSAttributedString, and i allow the user to specify the text and font
and size and text color. additionally
while it is meaningful to do spell checking in my
app, it is never meaningful to check grammar.
therefore, i would like the "Check grammar"
checkbox to not appear in the guess panel, or at
least be disabled/grayed out. how can i
accomplish this?
additionally, i'm not happy that the framework
At 5:04 PM -0700 6/25/09, Douglas Davidson wrote:
On Jun 25, 2009, at 5:00 PM, kvic...@pobox.com wrote:
is it possible to do document specific (ie, use a document
dictionary) "as-you-type" spell checking? ie, using NSTextFields
and NSTextFieldCells, is it somehow possible to specify
is it possible to do document specific (ie, use a document
dictionary) "as-you-type" spell checking? ie, using NSTextFields and
NSTextFieldCells, is it somehow possible to specify the spell
document tag to be used by the field editor?
thanx,
ken
ps. i know i've asked this question before in s
i would like to have continuous spell checking available for many of
my text fields and table/outline cells. i realize that this can be
accomplished by call -[NSTextView setContinuousSpellCheckingEnabled:]
for the appropriate field editor. what i don't understand is how to
specify the spell doc
my multi-document app has many windows and sheets, and there are LOTS
of NSTextFields (and subclasses) and editable NSTableViews and
editable NSOutlineViews in these windows and sheets.
i would like to enable continuous spell checking (in response to a
user preference) in a majority of these f
he other hand, if the user can continue using your app as
normal, you should not show the menu item highlighted, because the
user might want to choose different menu items.
On Jun 1, 2009, at 9:34 AM, kvic...@pobox.com wrote:
my app has a scripts menu item (in the main menu bar). the items in
this
r can continue using your app as
normal, you should not show the menu item highlighted, because the
user might want to choose different menu items.
On Jun 1, 2009, at 9:34 AM, kvic...@pobox.com wrote:
my app has a scripts menu item (in the main menu bar). the items in
this menu correspond to a
my app contains an NSSearchField in the toolbar of the various
document windows. and i have the various predicates of the search
field bound to iVars in my app. additionally, i have my own predicate
builder that lets the user build complex search predicates. when the
user has built a complex pr
my app has a scripts menu item (in the main menu bar). the items in
this menu correspond to applescript files the user has placed in my
application support folder. when the user selects one of these menu
items, i execute the appropriate script. i execute the script in a
(sub) task (NSTask). i d
At 1:36 AM -0400 5/16/09, Jim Correia wrote:
On Fri, May 15, 2009 at 12:26 PM, kvic...@pobox.com wrote:
if i call -[NSScriptCommand suspendExecution] whilst execution a script
command, i find that the executing script will still time out after 2
minutes.
is this a bug in cocoa? or a
(note: i posted this to the applescript implementors list earlier
this week, but i haven't received any replies. i'm reposting here in
the hope that someone here may be able to help. my apologies if this
is a violation of the rules.)
if i call -[NSScriptCommand suspendExecution] whilst executi
At 9:27 AM +0200 5/11/09, Jean-Daniel Dupas wrote:
Le 9 mai 09 à 22:29, kvic...@pobox.com a écrit :
At 9:14 PM -0700 5/8/09, glgue...@amug.org wrote:
ken wrote:
the only way i can think to perform this
conversion is to itereate over the virtual
key codes 0-127 (with various combinations
At 9:14 PM -0700 5/8/09, glgue...@amug.org wrote:
ken wrote:
the only way i can think to perform this conversion is to itereate
over the virtual key codes 0-127 (with various combinations of
shift and option keys) until i find the one that matches the user
input character.
and while th
i would like to convert a character to its corresponding virtual keycode.
the why: i allow users to specify keyboard equivalents for menu items
(in a manner similar to xcode key binding preferences). for reasons i
don't understand it works better use unshifted characters for the
shifted numeri
if i iterate over all the menu items in the main menu bar in
NSApplication's delegate method: applicationDidFinishLaunching, then
i don't find the menu item for "Arrange in Front" (an alternate for
"Bring All to Front") for the Window menu.
if i either click on the Window menu (in the main men
At 7:22 PM -0500 4/29/09, Ken Thomases wrote:
On Apr 29, 2009, at 6:40 PM, kvic...@pobox.com wrote:
thank you. this solved my problem.
You're welcome. I'm glad I could help.
and (i think) you've helped again. thanx. (see below)
and for the archives (to help anyon
ken
p.s. i realize this might have a bug if the unicode for the
unmodified keyboard character is more than 1 unicharacter.
At 9:53 PM -0500 4/27/09, Ken Thomases wrote:
On Apr 27, 2009, at 7:46 PM, kvic...@pobox.com wrote:
in my app, i allow the user to specify keyboard shortcuts for menu
items
in my app, i allow the user to specify keyboard shortcuts for menu
items (in a manner similar to xcode). for the string passed to
-[MenuItem setKeyEquivalent], i pass the string obtained from the
current event via [NSEvent charactersIgnoringModifiers]. this works
fine almost all the time. howev
:
PMSessionGetCurrentPrinter
which you can get from
-[NSPrintInfo PMPrintSession]
At 2:24 PM -0700 4/17/09, kvic...@pobox.com wrote:
my app is fully recordable and scriptable. when the user changes
the page setup, i am able to successfully record it and indicate
the paper name chosen via -[NSPrintInfo
aniel Demiss wrote:
Hi.
I'm not quite sure if I got you right but:
Am 17.04.2009 um 23:24 schrieb kvic...@pobox.com:
my app is fully recordable and scriptable. when the user changes
the page setup, i am able to successfully record it and indicate
the paper name chosen via -[NSPrintInfo localize
after i run the page setup dialog (successfully), if i examine the
name of the chosen printer (via [[printInfo printer] name]) should it
reflect the printer chosen in the page setup dialog?
i'm not seeing this. in fact, i am seeing the same printer name
before and after running the page setup
my app is fully recordable and scriptable. when the user changes the
page setup, i am able to successfully record it and indicate the
paper name chosen via -[NSPrintInfo localizedPaperName].
however, if the user attemps to write a script (either directly or by
modifying a previously recorded s
on 10.5.6 the following code snippet:
NSPrintInfo* sp = [NSPrintInfo sharedPrintInfo];
NSDictionary* dict = [sp dictionary];
NSPrintInfo* pi = [[NSPrintInfo alloc] initWithDictionary: dict];
NSData* piData = [NSKeyedArchiver archivedDataWithRootObject: pi];
will c
i've got a window that has several editable NSTextFields (and other
controls and views). if i do some editting in one of the fields and
then select another field (tab or click another text field), as you
can see in the below stack trace, this results in a call to
-[NSUndoManager removeAllAction
At 6:39 PM -0500 1/23/09, Andy Lee wrote:
On Jan 23, 2009, at 2:45 PM, kvic...@pobox.com wrote:
At Thu, 22 Jan 2009 23:13:45 +, Benjamin Dobson wrote:
On 22 Jan 2009, at 22:52:56, kvic...@pobox.com wrote:
in anticipation of the deprecation of NSCaledarDate, i am in the
process of
At Thu, 22 Jan 2009 23:13:45 +, Benjamin Dobson wrote:
On 22 Jan 2009, at 22:52:56, kvic...@pobox.com wrote:
in anticipation of the deprecation of NSCaledarDate, i am in the
process of converting my app to use NSDate and friends. and while
the process is mostly straightforward and not
in anticipation of the deprecation of NSCaledarDate, i am in the
process of converting my app to use NSDate and friends. and while the
process is mostly straightforward and not all that difficult, it is
tedious.
when i think i'm done, i'd like to be able to do a fresh build and if
possible ha
still a little on the slow side (about .4 seconds to delete 603 of
610 top level objects in an outline view), but its sorta acceptable.
ken
At 3:50 PM -0800 1/1/09, kvic...@pobox.com wrote:
i received the following advice off-list:
IIRC, when you do set operations like that, it performs a r
thanx,
ken
At 2:21 PM -0800 12/30/08, kvic...@pobox.com wrote:
i've got an NSOutlineView bound via an NSTreeController to a mutable
set in my model. in the sample i've been exploring, my outline
consists of 608 top level items in the outline, and only goes one
level deep. each top l
i've got an NSOutlineView bound via an NSTreeController to a mutable
set in my model. in the sample i've been exploring, my outline
consists of 608 top level items in the outline, and only goes one
level deep. each top level item has 2 or more children, and there are
a total of 1393 children.
for sometime now (i don't remember when this started, possibly w/
leopard or 10.5.5 or the previous dev tools update), i've been
getting a number of lines like the following on the debugger console
when hitting breakpoints:
warning: Trying to look up "NSString" in 'this' but 'this' is not an a
49 matches
Mail list logo