On Apr 5, 2010, at 7:02 PM, Sean McBride wrote:
> On Sun, 4 Apr 2010 23:15:16 -0400, Michael A. Crawford said:
>
>> Thus far I've gotten away with using -predicateWithFormat and scalar
>> values. I now need to compare a couple of NSDate instances but am not
>> sure how to code it up with NSPredi
On Apr 2, 2010, at 5:33 PM, James Walker wrote:
> On 4/2/2010 1:47 PM, Quincey Morris wrote:
>> On Apr 2, 2010, at 13:15, James Walker wrote:
>>
>>> I have an NSScrollView containing an NSTableView whose content is
>>> managed by an NSArrayController. I have a situation where I need to
>>> tempor
On Apr 2, 2010, at 10:30 AM, Jens Alfke wrote:
> On Apr 2, 2010, at 1:45 AM, Gideon King wrote:
>
>> 1. I'm not sure what keyboard or mouse options could be used for this, since
>> all the character keys change the selection in Finder, and all the normal
>> modifier keys are used for special fu
On Feb 25, 2010, at 12:12 AM, Stephen J. Butler wrote:
> On Wed, Feb 24, 2010 at 10:58 PM, Ashley Clark wrote:
>> I've manually replaced the contents of the duplicate framework in the action
>> with hard links to the other embedded framework and it works well but I'm
I've been using an embedded framework in a couple of my apps for database
access. I've recently created an Automator action which also embeds this
framework, built from within the same project. This Automator action is, in
turn, then embedded within the app bundle also. Now at this point, there
On Feb 23, 2010, at 2:31 PM, Trygve Inda wrote:
>> On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote:
>>
>>> In my sheet, I have a "name" NSTextField and an NSPredicateEditor.
>>> Initially, the tab key works to jump between my name field and the first
>>> match field in the predicate editor.
>>>
>
On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote:
> In my sheet, I have a "name" NSTextField and an NSPredicateEditor.
> Initially, the tab key works to jump between my name field and the first
> match field in the predicate editor.
>
> However, after changing any of the menus in the line of my pre
On Feb 3, 2010, at 7:27 PM, Charles Burnstagger wrote:
> I subclass IKImageBrowserView & IKImageView overriding initWithFrame: &
> drawRect: and sending the same messages to super in both cases.
>
> I've set them as the classes for the UI objects in my IB file, and as
> IBOutlets in my window's
I have seen some similar behavior with GCD in GC apps.
It seems that objects created on a separate thread that are then used from
within a block on another thread do not get registered as existing in multiple
threads. When the collector runs on the thread where the object was created it
sees no
Were these crashes under Leopard or Snow Leopard. I was seeing similar crashes
in GLEngine under GC/Leopard but so far haven't been able to reproduce any of
them under Snow Leopard.
On Apr 9, 2009, at 10:32 AM, Bill Bumgarner wrote:
> On Apr 8, 2009, at 12:36 PM, Ashley Clark wrote:
&
On Nov 10, 2009, at 4:55 PM, John Fox wrote:
> Hello Nice Cocoa People:
>
> I'd like to be able to create an IKImageBrowserView that only displays a
> single row of items that scrolls horizontally as needed. I didn't find any
> public API for doing this, even though (from what I understand at l
On Jun 28, 2009, at 8:29 PM, Loukas Kalenderidis wrote:
There's no sample code for NSRuleEditor, right? Or am I missing
something?
I saw someone ask this on a list last year and the answer was "no,
but I've got a sample I can send you" - does anyone have anything
they're willing to share?
On Jun 21, 2009, at 10:44 AM, Ken Tozier wrote:
Hi
I'm working with an NSText view and want to display tab delimited
strings in a table format. I don't need a full NSTable, just the
ability to break up the text into columns using tab stops. Is there
any built-in way to do this? Something
On May 12, 2009, at 12:01 PM, David Harper wrote:
Hello,
I'm finalizing an application which disallows document saving when
not registered. I've put interrupts in my NSDocument subclass' -
saveDocument: and -saveDocumentAs: methods so that [super ...] is
only invoked if the application is
On May 5, 2009, at 9:42 AM, Mic Pringle wrote:
I'm working on a project that accepts user input via an NSTextView
instance, but I would like to have a user-defined number of spaces
inserted when the tab key is pressed. Similar to how TextMate allows.
What is the best way to acheive this ? NSLay
The documentation[1] about accessor search order shows that it will
prefer a method named - over the corresponding -countOf and -
objectInAtIndex: methods.
Specifically you should read the section about the search pattern for
valueForKey. The mutableArrayValueForKey proxy only details how ar
The PhotoSearch[1] sample code from Apple uses a custom cell and
overrides -selectWithFrame:inView:editor:delegate:start:length: and -
editWithFrame:inView:editor:delegate:event: to resize the field editor
within a larger cell.
Ashley
[1] http://developer.apple.com/SampleCode/PhotoSearch/
On Apr 29, 2009, at 11:46 AM, Chris Tracewell wrote:
On Apr 29, 2009, at 8:13 AM, Ashley Clark wrote:
On Apr 28, 2009, at 12:12 PM, Chris Tracewell wrote:
I am looking for the best method of turning off the visibility of
an NSButtonCell object for individual rows in an OutlineView
On Apr 29, 2009, at 10:43 AM, Eric Gorr wrote:
I was wondering if it was possible to get finer control over what
type selecting searches in a row.
I have two columns in my table which both contain text. It only
makes sense to match what the user is typing to the text found in
the first co
On Apr 28, 2009, at 12:12 PM, Chris Tracewell wrote:
I am looking for the best method of turning off the visibility of an
NSButtonCell object for individual rows in an OutlineView/TableView.
I have an OutlineView that is bound to a TreeController. There are
two columns. In the last column I
I'm using an IKImageBrowserView to show sets of PDF documents in my
program and am occasionally seeing crashes during IKImageWrapper
finalize calls. The crash log shows absolutely none of my code at all.
This typically happens when someone is adding a document to the image
browser's datasou
On Apr 2, 2009, at 10:57 PM, Huibert Aalbers wrote:
Hi everyone,
I am writing an application that offers support for Undo/Redo.
Everything works fine, except for a small detail that bothers me.
Since I set the document edited flag manually, using the [theWindow
setDocumentEdited:YES] inst
On Mar 23, 2009, at 10:31 PM, Gmail wrote:
On Mar 24, 2009, at 10:01 AM, Ashley Clark wrote:
On Mar 23, 2009, at 9:30 PM, Gmail wrote:
Thanks! I think that document explains everything I need to know
to take control over IB.
This is more Objective-C related by maybe you have a quick tip
On Mar 23, 2009, at 9:30 PM, Gmail wrote:
Thanks! I think that document explains everything I need to know to
take control over IB.
This is more Objective-C related by maybe you have a quick tip. My
first tests suggest that my method for overriding is not correct
because overriding "init"
On Mar 19, 2009, at 12:12 AM, Peter Zegelin wrote:
I have an NSTableView in a sheet window. It has one column and a
valid dataSource and delegate. There are 128 rows. If I populate the
view with Textcells, sliders or popup button cells the tableview
scrolls normally, but if I populate the
I don't see NSDecimalFromString() in any of the docs or header files,
only NSDecimalString() to create strings. Where is that defined?
Ashley
On Mar 14, 2009, at 2:08 PM, Luca Pazzerello wrote:
You can also create NSDecimals using NSDecimalFromString().
--Luca C.
2009/3/14 Ashley
On Mar 14, 2009, at 11:28 AM, WT wrote:
I was reading the "Number and Value Programming Topics for Cocoa"
section about decimal numbers and now I'm confused. If I want to
use the C interface rather than the NSDecimalNumber class, how do I
"instantiate" an NSDecimal struct? According to the
On Jan 30, 2009, at 2:03 PM, Matt Neuburg wrote:
This is a documentation question, really. So, it turns out that when
you
call replaceSubview: through an animator proxy, the @"subviews"
animation is
triggered. You can modify what happens during replaceSubview: by
adding your
own animation
On Jan 26, 2009, at 10:58 AM, Sean McBride wrote:
On 1/24/09 11:05 PM, jonat...@mugginsoft.com said:
I changed my store type to SQLite and noted an immediate improvement
in load times.
Your app isn't garbage collected is it? Because if so, note that the
SQL store is incompatible with GC app
On Jan 15, 2009, at 11:19 PM, Tobias Zimmerman wrote:
I am grateful to everyone who has responded, and, as I expected,
many concur
that VSIZE is a (largely) meaningless statistic. However, I am
still not
entirely satisfied with the answer to my first question, which is:
How does
the OS det
On Jan 10, 2009, at 1:00 PM, John Love wrote:
-performSelectorOnMainThread:withObject:waitUntilDone:, according to
Apple docs, is passed a SEL method that "should not have a
significant return value".
I wish it to return a INT and I figure that that qualifies as in-
significant. Given tha
On Jan 10, 2009, at 2:10 AM, Bill Bumgarner wrote:
On Jan 9, 2009, at 7:11 PM, Ashley Clark wrote:
This should apply to NSNumber and NSDecimalNumber too right? Yet
the NSNumber +numberWith... methods are declared to return
(NSNumber *) and when called on NSDecimalNumber they return
This should apply to NSNumber and NSDecimalNumber too right? Yet the
NSNumber +numberWith... methods are declared to return (NSNumber *)
and when called on NSDecimalNumber they return NSDecimalNumber objects
which then have to be typecast.
__
Ashley
On Jan 9, 2009, at 7:45 PM, mmalc Cr
Do you have an NSNumberFormatter applied to unitaryPrice somewhere
that is not set to generate decimal numbers? The documentation
indicates that generating NSDecimalNumbers is on by default, but just
dragging the NSNumberFormatter to an empty XIB over here doesn't start
with it ticked off i
I have an NSTableView with two columns, one is an NSButtonCell
checkbox and the other an NSTextFieldCell describing the row. These
columns are using bindings and are bound to their appropriate key
paths. Earlier in my application's history I could have a row selected
and hit the space bar a
On Dec 17, 2008, at 8:20 AM, Carmen Cerino Jr. wrote:
I understand I need to have a NSToolbarItem subclass and override its
validate method, but who is responsible for calling it? Will NSToolbar
call it during its validation routine or do I need to come up with my
own validation routine?
NSToo
On Dec 16, 2008, at 12:46 PM, Randall Meadows wrote:
I have a table that contains representations of various types of
data. As a row is selected another view changes to show details of
that data. For instance, some display images and some display text
in an NSTextView.
As I change from
On Dec 15, 2008, at 4:54 PM, John Michael Zorko wrote:
Hello, all ...
Imagine this:
static NSMutableDictionary *lookup = [NSMutableDictionary new];
... now imagine a situation where I need to clear that dictionary.
If I call
[lookup release];
lookup = [NSMutableDictionary new];
... it w
On Dec 13, 2008, at 11:18 AM, Chunk 1978 wrote:
i've noticed in some menu bar apps like Google's GMail Notifier, the
time since last email check will display when changed while the menu
is open. how can i emulate this behavior in my own NSMenuItem that
changes every 30 seconds (it shows a timer)
On Dec 13, 2008, at 12:19 AM, Bridger Maxwell wrote:
Just when I thought I had bindings down
I have a custom view subclass (sineWaveView) that the user interacts
with to change a property (connectedContact). I would like to bind
this to a value (selectedShortRangeContact) in a dictionar
On Dec 12, 2008, at 9:46 PM, Alex.Wang wrote:
Hi everyone. Currently I have a very huge NSOutlineview to manage my
tree-like data. So to annotate the line number on the left side of the
NSOutlineview is a very important feature for my application.
Can anyone tell me whether there is a method to
On Dec 11, 2008, at 6:32 AM, Chunk 1978 wrote:
thanks everyone for the answers.
i agree that Ashley's method is far more readable than using modulus
calculations, so i'll look into that further as i can't seem to get it
working yet.
currently, i have this working using modulus calculations, bu
On Dec 10, 2008, at 8:06 PM, Nick Zitzmann wrote:
On Dec 10, 2008, at 6:41 PM, Chunk 1978 wrote:
i read in the docs that the use of NSCalandarDate is discouraged
because it's going to be depreciated for OS X 10.6... i'm not really
sure if depreciated means that any code with NSCalandarDate wil
If you save off a starting time object you could use NSDateComponents.
NSDate *startDate = /* set at beginning */
NSCalendar *cal = [NSCalendar currentCalendar];
NSCalendarUnit units = NSHourCalendarUnit | NSMinuteCalendarUnit |
NSSecondCalendarUnit;
NSDateComponents *comps = [cal components
On Dec 10, 2008, at 10:48 AM, Paul Bruneau wrote:
Hi-
I ran into a problem with my production scheduling application as
the new year approached.
In IB I am using a 10.0 date formatter bound to NSDate properties of
a model object.
I used: %1m/%1d, %1I:%M%p
which gave me something like:
On Dec 5, 2008, at 9:44 AM, Chunk 1978 wrote:
hi.
Hi.
i've been on this task for almost a week, and i still can't get it
right. basically, i would like to have an NSMenu populated with all
the files and folders of a specific directory. for this example i'll
use ~/Documents. the code below
On Dec 5, 2008, at 9:28 AM, Jesse Grosjean wrote:
When I hit F5 to do complete: in text edit the menu of completions
shows indefinitely, until I select an item or type a new letter. Same
thing happens when I do F5 in Safari's search field. But if I do F5
in
Xcodes's toolbar search field the p
On Dec 4, 2008, at 5:46 PM, Mikael Wämundson wrote:
Hi all.
Since it is good programming to not access an array's content
through its controller when in the model I'm trying to find a way to
get to the same object selected in the user interface (i.e. the
array controller).
In my view I
On Dec 3, 2008, at 10:05 PM, Steven Hamilton wrote:
Hi folks,
Hi!
I have a subclassed NSWindowController. In this class I have a
method that extracts data from my core data model and formulates an
array of dictionaries. Also in this class I have the tableview
datasource methods. The dat
If your outline's data is being populated from an NSTreeController
then the fetch isn't happening until the next iteration of the event
loop. If I understand it correctly this is done so that it can present
any errors as a sheet on your window.
Try delaying your call to expandItem: in your
On Nov 29, 2008, at 2:58 PM, Glenn Bloom wrote:
// Implement loadView if you want to create a view hierarchy
programmatically
- (void)loadView {
/* snip */
NSMutableString * stringCompleteMutable = [NSMutableString
stringWithString:string00Local]; // local variable set with a
construct
On Nov 29, 2008, at 12:47 PM, Pierce Freeman wrote:
NSMutableSet *openApplicationsSet = [NSSet
setWithArray:openApplications];
While openApplicationsSet is declared to be an NSMutableSet you are
not creating one. Your assignment should be [NSMutableSet
setWithArray:...]
NSSet *allowedA
On Nov 29, 2008, at 9:45 AM, Glenn Bloom wrote:
Ashley,
Can't thank you enough. I just posted the following, hoping to pre-
empt other folks from wasting time correcting me on various points
you addressed - and I hope, refocusing things on my major
questions. I have of course been throug
On Nov 28, 2008, at 11:44 PM, Glenn Bloom wrote:
In the course of trying to understand UIViewController memory
warnings on
the iPhone, I've found various useful threads online, and in
particular, was
very glad to follow the numerous recent posts in this forum with the
subject
'Outlets / IB
at 5:13 PM, Ashley Clark wrote:
I've got a GC-only document-based application and I'm trying to add
basic print operations to my documents. I've reduced this down to
what I think is the absolute minimum required here and I'm still
seeing this bug.
With a completely new D
I've got a GC-only document-based application and I'm trying to add
basic print operations to my documents. I've reduced this down to what
I think is the absolute minimum required here and I'm still seeing
this bug.
With a completely new Document-based application I'm adding these 3
metho
On Nov 18, 2008, at 4:28 PM, Brooke Gravitt wrote:
Hello,
I'm trying to better acquainted with Cocoa and Obj-C, having some
trouble with simple things. Perhaps someone could kindly apply cluebat
to skull for me.
I'm accepting a couple of string values from a pair of NSTextField and
would like
On Nov 18, 2008, at 3:53 PM, John Clayton wrote:
So, with the extra two bits of knowledge, namely:
- I have a Nullify relationship from Effect to the Layers 'effects'
set/relationship
- it works if I call processPendingChanges
does it still 'reek' to you of something being broken?
I'm a
e - I disabled it intentionally.
I've tried that notification, its only fired on save of the context.
On 18/11/2008, at 1:22 PM, Ashley Clark wrote:
According to the documentation and to my quick test, the
NSManagedObjectContextObjectsDidChangeNotification is sent during
processP
According to the documentation and to my quick test, the
NSManagedObjectContextObjectsDidChangeNotification is sent during
processPendingChanges. At the very least that happens at the end of
every event loop automatically. Even if you've bypassed your event
loop somehow you can still call p
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 a
I was experimenting with some of the features of a text view and tried
to pull up the typography panel from my app and got this message on my
console:
Error loading /System/Library/CoreServices/TypographyPanel.bundle/
Contents/MacOS/TypographyPanel: dlopen(/System/Library/CoreServices/
Typ
On Nov 1, 2008, at 4:22 PM, Jeshua Lacock wrote:
On Nov 1, 2008, at 2:20 PM, Ashley Clark wrote:
As well I don't see in my version of the SDK where UIAnimator is
defined. If you're trying to use private API here, don't. Just
set the duration on the anim object directly and
On Nov 1, 2008, at 2:58 PM, Jeshua Lacock wrote:
On Nov 1, 2008, at 1:51 PM, Ashley Clark wrote:
What are the values of anim and images before you try to add them
to the animator? In the code portion you posted you don't show
where you're creating your "anim" obj
On Nov 1, 2008, at 1:02 PM, Jeshua Lacock wrote:
On Nov 1, 2008, at 11:44 AM, Ashley Clark wrote:
Your crash is happening because you're releasing something you
shouldn't be. The CGImage you're getting from the UIImage was not
accessed through a Create* or Copy* function an
Your crash is happening because you're releasing something you
shouldn't be. The CGImage you're getting from the UIImage was not
accessed through a Create* or Copy* function and therefore you are not
responsible for it and have no need to call the CGImageRelease function.
__
Ashley
On
I have a subclass of NSTableView that I use that allows the use of the
return key during a field edit to move to the next row and begin
editing. This works fine _unless_ the field I'm editing happens to be
one that NSArrayController is observing and thus causes a
rearrangeObjects call. When
On Oct 31, 2008, at 1:19 AM, Ashley Clark wrote:
I'm pretty sure I've seen someone ask this before but I just can't
find it in Google. So I'll ask again.
I have undo/redo working throughout my program but I seem to
remember earlier that upon opening a document a
havior back.
Does anyone have any clues?
Ashley Clark
___
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 cocoa-dev-admins(at)lists.apple.com
Help/U
Hi!
On Oct 29, 2008, at 9:43 AM, Bob Henkel wrote:
Hello,
What I want to do now is invoke a method on the object I have selected
in nstableview by clicking a third button labeled Random Salary which
will call the method giveRandomSalary that I created in my Employee
class. The job of this
I've made a test project that exhibits this behavior if anyone cares
to look and filed a bug rdar://6327051
http://idisk.mac.com/aclark78-Public/KVONotificationBug.zip
Ashley
On Oct 28, 2008, at 4:30 PM, Ashley Clark wrote:
On Oct 28, 2008, at 2:13 AM, Ashley Clark wrote:
I have
On Oct 28, 2008, at 2:13 AM, Ashley Clark wrote:
I have a bid revision object that holds a to-many NSSet reference to
a group of items that constitute a tree. Some of those items are
roots and have a nil parent. In my bid revision object I've set up a
rootItems method that uses a pred
I have a bid revision object that holds a to-many NSSet reference to a
group of items that constitute a tree. Some of those items are roots
and have a nil parent. In my bid revision object I've set up a
rootItems method that uses a predicate to return a filtered set of the
items with nil pa
On Oct 23, 2008, at 12:42 AM, Ron Lue-Sang wrote:
Hey Ashley,
On Oct 21, 2008, at 12:23 AM, Ashley Clark wrote:
I'm pretty sure I've got this worked out and it seems to be
working, BUT I thought that before and when I turned on Auto
Arrange Content on my NSArrayController&
On Oct 22, 2008, at 6:21 PM, Randall Meadows wrote:
I'd have sworn in times past I've run across a Cocoa method that
takes 9 "slice" of an image, and expands the middle piece while
retaining the outer 8 pieces to create an "expandable" image.
(Imagine a button image with a custom border, bu
On Oct 21, 2008, at 3:45 PM, Peter Ammon wrote:
On Oct 21, 2008, at 9:35 AM, Barry Wark wrote:
I'm using [NSPredicateRowEditorTemplate
templatesWithAttributeKeyPaths:inEntityDescription:] to generate
predicate row templates for a Core Data entity. One of the properties
is a date. Is there any
I'm pretty sure I've got this worked out and it seems to be working,
BUT I thought that before and when I turned on Auto Arrange Content on
my NSArrayController's this bug popped up. So I wanted to make sure
I'm doing this right.
I'm lazily initializing objects that are being read from a d
You can implement copying of a view by archiving and immediately
unarchiving the root view.
Something like this (written on the phone, don't expect this to parse
correctly immediately):
-(id)copyWithZone:(NSZone *)zone {
return [NSKeyedUnarchiver unarchiveObjectWithData:
[NSKeyedArchi
eyPathsForValuesAffectingTransaction {
return [NSSet setWithObject:@"transactions"];
}
It all works perfectly here. What errors (if any) are you seeing? Make
sure that all of your data access to those dependent properties are
enclosed in willChange.../didChange... methods.
--
Ashley Clark
wWindows.
You might also look at -makeDocumentForURL:withContentsOfURL:ofType:error:
and then adding that document to the document controller?
--
Ashley Clark
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
x95505548 in -[NSCFArray objectAtIndex:]
#5 0x0001fdb6 in -[JTApplicationDelegate showInventoryInformation:] at
JTApplicationDelegate.m:35
#6 0x95907b03 in -[NSApplication sendAction:to:from:]
#7 0x959b6540 in -[NSMenu performActionForItemAtIndex:]
#8 0x959b62
On Oct 2, 2008, at 12:28 PM, Bill Bumgarner wrote:
On Oct 1, 2008, at 9:17 AM, Ashley Clark wrote:
As for your crashes I think I can offer some advice. If you're not
doing
any mallocs then most likely you're passing objects back to your main
thread through some shared space, po
the rect is square, not round, the bug also disappears.
>
> I don't use NSOpenPanel in my application.
>
> I have exhausted all my versions about what could be wrong. Any ideas?
--
Ashley Clark
___
Cocoa-dev mailing list (Cocoa-
s under Leopard 10.5.5 with Xcode 3.1.1, GC-enabled.
Ashley Clark
___
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 cocoa-dev-admins(at)lists.apple.com
H
84 matches
Mail list logo