Folks;
I have a CoreData model working reasonably under Tiger now moving to
aggressive testing on Leopard.
I'm seeing something I don't believe I've never seen on Tiger...
The application has only one ManagedObjectContext. This is
established during the -awakeFromNib of the NSApp delegate
Folks;
I want to obtain a count of instances for a specific entity in stored
in Core Data (SQLite)
In the archive I find this:
FROM : mmalcolm crawford
DATE : Sun Apr 02 21:21:45 2006
On Apr 2, 2006, at 11:16 AM, Frederick C. Lee wrote:
> How do you count (or determine empty
Folks;
I've gotten the IM framework to respond to a few basic things but I'm
puzzled by something simple...
I can determine the audio or video capabilities of buddies just fine
BUT how do I figure out what my own capabilities are?
If I send the request for IMPersonCapabilitiesKey for my ow
Folks;
I'm an ObjC guy who has to deal with some Carbon code that looks like
this:
#define kVERSION "abc"
#define kPARTNUMBER "123"
...
if ( (p_flag = initSomeSystem (
kVERSION,
kPAR
,
(char *) cPartNumber,
&errorCode))
== NULL) {
Thanks,
Steve
On May 11, 2008, at 12:59 PM, Nick Zitzmann wrote:
On May 11, 2008, at 11:36 AM, Steve Cronin wrote:
Is this correct?
Is there a bett
Folks;
I have an application which will have an optional helper NSStatusItem.
The statusItem is a stand-alone application which can be installed as
a LoginItem.
I want this status item to be able to read the preferences file from
the application.
The user sets a number of preferences in the
ncesCurrentUser,
kCFPreferencesAnyHost);
}
Steve
On Dec 28, 2008, at 8:17 PM, Kyle Sluder wrote:
On Sun, Dec 28, 2008 at 8:41 PM, Steve Cronin
wrote:
This not a managed environment nor is this issue related to users
or hosts,
so it doesn't seem that CFPreferences is called for (or even helps!)
In fa
Folks;
I've got two targets built from the same project: Big and Little
Big has many resources, source files, as well as several frameworks
that are copied and then deployed to a 'Frameworks' directory in the
app file's 'Contents'.
Little has many fewer of the resources and sources and only
Folks;
I have some methods which might be handled by one of several objects.
So I have a set of if ( [objectX
respondsToSelector:@selector(foo)] ) {... } else if ( [objectY
respondsToSelector:@selector(foo)] ) {... }
The functionality is fine but the compiler warnings for "no 'foo'
Folks;
Thanks for the rapid and thought-provoking responses!!
Ken - I don't understand what you said about the method's signature's
compliance with NSObject _protocol_.
I looked at the protocol definition in the documentation and I just
don't understand well enough to see what I could do to
#x27; but I get the point!
As always with you -> Quite Helpful!
Thanks,
Steve
On Dec 30, 2008, at 1:00 AM, Ken Thomases wrote:
On Dec 30, 2008, at 12:06 AM, Steve Cronin wrote:
Ken - I don't understand what you said about the method's
signature's compliance with NSObject _pr
Folks;
This is a clarification for the record
After some sleep and a cup of coffee and I realize that something I
wrote was hasty, oh OK, sloppy!
I took Bill's quoted example:
@interface NSObject
(MyClassOptionalMethodsThatMightBeImplementedByJustAboutAnything)
- (void) someSpecial: (Sauce
Michael - So does the revised code below fix the leak?
After a bit more studying of the documentation, I offer these revised
'more Cocoa-friendly' updates:
The driving issue is a helper app which wants to access prefs written
by the 'motherApp'.
- (NSDictionary *) prefDictionary {
Michael;
OK to really perhaps beat the poor horse, is the following kosher?
(NSDictionary *) prefDictionary {
return [(NSDictionary *)CFPreferencesCopyMultiple(NULL,
appBundleID, kCFPreferencesCurrentUser, kCFPreferencesCurrentHost)
autorelease];
}
Steve
Michael said:
Yep, this fix
Folks;
I'm getting an immediate crash, before I can get anything written into
a log (before any class +iniitialize).
The stack at the crash is below.
In the debugger (XC3.1) I enter 'frame 9' and then do a 'po *(id*)
($ebp+16)' to see what the offending object is but I just get "No
symbol
Folks;
Under some circumstances I'm not sure how big a mutable object might
need be.
So is there any guidance on coming up with a value for capacity?
Assume for these cases that reasonable guesses range from say 2 -
5000...
I assume it's wasteful to just do a land grab with +arrayWithCapa
Folks;
I have a source list type view.
I am using a tableView not an outlineView because it works for this
data set.
I have an attributed string which has an image and a name.
This is the only column in this tableView.
This tableView is contained in a splitView which allows this 'nav' to
be
ified
for the truncation flag to take effect."
Maybe this will point you in the right direction
bk
On Jan 12, 2009, at 12:19 AM, Steve Cronin wrote:
Folks;
I have a source list type view.
I am using a tableView not an outlineView because it works for this
data set.
I have an attributed
Folks;
I have an array of 'Suspect' objects which have 'names', 'capeSize',
'hatSize', 'planetOfOrigin', all the usual stuff...
Now I also have a list of 'RebelOutposts'; a set of 'planet' name
strings,
What I want to do is remove from a usualSuspects array of Suspects any
Suspect whos
Folks;
NSTextView has an attribute 'automaticLinkDetection' that can be set
in IB or with the usual -set method.
What the docs say is that it "...causes strings representing URLs
typed in the view to be automatically made into links to those URLs..."
This is what I observe. If I begin typing
Folks;
An Australian tester is reporting the crash shown below...
How can I best attack this problem?
What kind of IB setting causes a 'makeObjectsPerformSelector:'?
I do not directly call such a method in my code at all.
What do I make of the 'CFRelease' at frame 0?
What can I do to facilitate
Corbin;
Thanks for responding!
I don't understand "..Symbolicate your backtrace.."
Can you take a moment and educate me on this?
Thanks!
Steve
On Jan 29, 2009, at 1:24 PM, Corbin Dunn wrote:
On Jan 29, 2009, at 9:54 AM, Steve Cronin wrote:
Folks;
An Australian tester i
Folks;
iTunes and Excel both have a feature wherein if you double-click on
the column divider in the tableHeader then the table column width is
adjusted to the maximum width of the data in the column.
Below is a reasonably generic Cocoa solution for implementing this
behavior.
The tableVi
Corbin;
Hey thanks for replying!
First off, don't use the 'tableView:' prefix for your own delegate
methods. Consider what would happen if AppKit introduced the same
delegate method in a future release. Well, I can tell you from
experience that it won't be good. So, please make it somethin
Folks;
I have a need for a stand-alone service.
Seems like Service don't get alot of love... (Maybe that's my
problem .. but I don't think so)
To be clear here, this is a stand-alone .service type application (not
a service vended by a larger app (like Mail).
Here's what I have done:
0) b
rn self;
}
- (void) applicationDidFinishLaunching:(NSNotification *)aNote {
[NSApp setServicesProvider:self];
void NSUpdateDynamicServices(void);
}
- (void) myServiceName:(NSPasteboard *)pboard userData:(NSString
*)userData error:(NSString **)error {
.
}
On Feb 4, 2009, at 5:47 AM,
n for new Services is to run pbs directly:
/System/Library/CoreServices/pbs
However, pbs has no supported public interface and this will (has
already) change, so don't include any reference to pbs in a script.
NSUpdateDynamicServices() is the right way to programmatically
refresh Services.
a script.
NSUpdateDynamicServices() is the right way to programmatically
refresh Services.
-Peter
On Feb 4, 2009, at 7:03 AM, Steve Cronin wrote:
Well, sheesh - that's embarrassing! There is no 'self' until init
- I know that! Ugh.
However, that doesn't cha
ne else.
Steve
On Feb 4, 2009, at 5:10 PM, Peter Ammon wrote:
On Feb 4, 2009, at 1:23 PM, Steve Cronin wrote:
NSMenuItem
Menu item title
MyService
The key
Folks;
I use AppleScript to accomplish some inter-application tasks.
Over time I have a developed several utility routines in Cocoa, one of
which is to return the results of an arbitrary script execution. as an
NSString:
- (NSString *) getStringResutlFromAppleScript:(NSString *)theScript {
Folks;
I have a mix of view and image based toolbar items.
The views are all IBOutlets defined in IB.
Everything is working well - events are handled and items
arevalidated, everything is dandy.
Except when the user customizes the toolbar.
The image based items can be added and removed 'till
view based toolbar
items if you intend to allow customization; that you must build the
entire view in code?
Could you explain just a bit more?
Steve
On Feb 10, 2009, at 5:47 PM, Peter Ammon wrote:
On Feb 9, 2009, at 7:13 PM, Steve Cronin wrote:
Folks;
I have a mix of view and
Folks;
I have two custom tableViews and two custom arrayControllers.
The reasons for the custom objects are so the UI can respond to
specific key events and for drag and drop support.
Both tableView have their appropriate arrayControllers designated as
delegates and datasources.
The tableVie
Folks;
I have developed an application with XC 3.1 on a 10.5 Intel machine
using the 10.5 SDK w/ a 10.4 deployment target.
(No GC for me!)
In testing I immediately ran into a few difficulties on a 10.4 PPC
machine.
In the course of tracking down these issues I ended up installing XC
2.5 o
as I do use compound
predicates.
Judging by the scope the Release Notes and the speed with which I
could locate even one germane issue I am convinced that my original
instinct to use the 10.5 SDK because the code base is better IS correct.
But I am puzzled by your "good and bad thing"
d and for keeping my life simple!
Steve
On Oct 18, 2008, at 2:19 AM, Ken Thomases wrote:
On Oct 18, 2008, at 1:36 AM, Steve Cronin wrote:
...(bug fixes) which are only enabled for binaries linked against
the 10.5 SDK. This is both a good and bad thing. It means your
program works consis
Folks;
I've inherited some Cocoa code that uses NSMutableNURLRequest and
NSURLConnection to pass .php request to a server.
The NSMutableURLRequest packs up some data into the the .php which
stuffs this data into a MySQL database.
This is all working nicely.
Now what I've been asked to make
Folks;
I'm really puzzled by this one. In one window I have a TexView inside
a ScrollView - works well - user can type many lines and scroller
appear and disappear as expected.
In another window I have another TextView inside a ScrollView and
every time the user hits the 'Return' or 'Ent
Folks;
Sheepish - the offending textView was set as field Editor
Yeesh I guess I need some sleep.
Thanks for the responses!
Steve
On Mar 8, 2009, at 12:02 AM, Scott Anguish wrote:
what bindings have you set for the misbehaving text view?
On 8-Mar-09, at 12:41 AM, Steve Cronin wrote
Folks;
I use an object in my application called 'appDelegate'; it's a
subclass of NSObject.
I instantiate this object in the main Nib file
This object has IBActions for the main menu and since it is -app
delegate it is a kind on central dispatcher.
My question is this:
The +initialize is
Folks;
I have an 10.5 Intel development environment but I am deploying to
10.4 Universal using the 10.4 SDK.
I have a QTMovieView object from IB in a window.
When I run in Debug mode a message appears in the Console.
When I run in Release mode on either platform - no message appears (I
rou
Folks;
I'm trying to get a string value back from a simple AppleScript in
Cocoa:
NSDictionary *errorDict= nil;
NSAppleScript *appleScriptObject = [[NSAppleScript alloc]
initWithSource:theScript];
NSAppleEventDescriptor *eventDescriptor = [appleScriptObject
executeAndReturnError: &errorDi
SDEF file had been renamed.
As Samuel Jackson said in "Black Snake Moan" -- "Collar that dog!",
Steve
On Mar 22, 2009, at 12:05 PM, Matt Neuburg wrote:
On Sat, 21 Mar 2009 12:38:11 -0500, Steve Cronin
said:
Folks;
I'm trying to get a string value back from a simple
d lose the resistance but there are only so many
mountains one guy can climb...
Thanks for the very helpful note!
Steve
On Mar 22, 2009, at 12:43 PM, Adam R. Maxwell wrote:
On Mar 21, 2009, at 10:38 AM, Steve Cronin wrote:
The 'theScript' is a valid script that executes flawlessly
Folks;
I'm reading input from a text file (stringWithContentsOfFile) I have
no control over.
Testing is going well until a I encounter a phrase is wrapped in curly
quotes.
(Note phrases wrapped in straight quotes are fine)
Without trying to digest the entirety of the Mac OS Text Encoding
Folks;
I have a panel which I want to allow the user to extend vertically up
to 100 pixels.
IB 3.1 (xib)
Resize flag - ON
Has Minimum Size - ON (use Current to establish the base size)
Has Maximum Size - ON (use Current then add 100 to Height)
Now the project won't compile:
error: This windo
Folks;
I haven't stuck my toe in the iPhone water yet.
I know I could find the answers to these by digging but I've been
asked to find out the answers quickly...
1) Does the iPhone support the Cocoa AddressBook.framework? If so, do
the AB change notifications also work?
2) We believe tha
Folks;
Its been a long day and maybe I'm just in need of sleep but I'm
bamboozeled...
I have an NSMutableDictionary (newThing) that is set up based on some
user defaults and current contextual data.
newThing is fine.
What I want to do is clone newThing (newThing2) and leave the values
Graham;
THANK-YOU for this informative and "full-bodied" answer!
I want make sure I fully understand:
1) The "Easy Way" works only if there are no collection objects as
values in the "copied" dictionary (or other collection).
It seems to me that the "Hard Way" is ultimately necessary for "ev
"
Is the reason you are alluding to the complications due to instance
variables that is noted in the NSMutableCopying Protocol notes?
Or are you thinking of another reason?
Steve
On Apr 24, 2009, at 11:34 AM, Mike Abdullah wrote:
On 24 Apr 2009, at 17:15, Steve Cronin wrote:
Graham;
Folks;
I have a mutable dictionary 'myPerson' which has a key=@"address".
The object stored at @"address" is another mutable dictionary.
someCity = [myPerson valueForKeyPath:@"address.city"] --> nil
someCity = [[myPerson valueForKey:@"address"] valueForKey:@"city"] --
> expected value
Why
Folks;
Annoyed that something was amiss I have respecified the various bits
of code and it all now works as I knew Cocoa would..
Best explanation I can offer is some spelling error in key handling of
which I was blinded..
Sorry for the nuisance on the list! [:-(
Steve
This code works:
NSM
Folks;
I'm trying to write a pretty simple contextual menu plug in
I've modeled it after SampleCMPlugin. I just to the COM stuff
straight away.
I successfully compile and move the release product to ~/Library/
Contextual Menu Items
I log out and back in
I never see any of the printf() e
Folks;
I'm making slow progress on what seems like should be a really simple
contextual menu plugin.
Build the 2006 version of Apple's SampleCMPlugin (that's the latest I
could find)
There is a section of code to determine if the current selection is
text (or could be coerced to text):
Folks;
This is XC2.4.1 on Tiger 10.4.11. (been at this level since 10.4.11)
no recent system level changes.
I'm doing Cocoa application development and all things are proceeding
normally when suddenly I can no longer run the debugger.
I have pretty stringent build rules but I get a good cl
101 - 155 of 155 matches
Mail list logo