Ok, thank you Scott.I'll try to reuse my Java code to get it works with a
Cocoa GUI.
Chris
2008/8/20 Scott Anguish <[EMAIL PROTECTED]>
>
> On 19-Aug-08, at 4:29 PM, Christophe Bismuth wrote:
>
> Dear community,
>> I've developed a Java application using JavaMail library to get my Gmail
>> messag
On Aug 19, 2008, at 21:39, R T wrote:
I have a Core Data Document-based Application.a document window
with a tableview, a text view and a button. When the button is
selected, a number is read from the text field and that many
objects are programatically added to the tableview. Then a s
Try using NSZombieEnabled to trap over released objects, Have a look
at the following documents for using NSZombieEnabled
http://developer.apple.com/technotes/tn2004/tn2124.html
Also,
http://cocoadev.com/index.pl?NSZombieEnabled
-Chaitanya
On 20-Aug-08, at 12:40 AM, Nicolas Goles wrote:
Hey
Are you actually saving the contents of the document to a file inside
the package?
Try to get the document's fileURL and check if it is the same for the
first and subsequent save operations, that might give a hint.
The problem might also occur if you arbitrarily tweak the fileUrl.
-Chaitanya
On 20 Aug 2008, at 2:40 pm, Nicolas Goles wrote:
Track *newTrack = [[Track alloc] init];
[albumsLibrary addTrackToLibrary:newTrack
withPath:fullPath];
I didn't spot anything immediately obvious, but what's this doing?
You alloc/init an object and DON'T release
Hey guys , I am writing an application to read/write tags to mp3 files...
the thing is working out pretty nice , ( my application is able to get a
directory input and scan the mp3 files and print the tags in the console ).
The problem is that after printing my tags the app crashes and I get an
erro
I have a Core Data Document-based Application.a document window with a
tableview, a text view and a button. When the button is selected, a number is
read from the text field and that many objects are programatically added to the
tableview. Then a sheet is opened. The tableview presents only
In addition to what others have said...
On Aug 19, 2008, at 12:02 PM, Dave wrote:
[myPersonDetails setFirstName:[[NSString alloc] initWithCharacters:
myBufferPtr length: myStringSize]];
This makes memory management awkward. This code is creating an object
using alloc, so it's responsible
On Aug 19, 2008, at 5:47 PM, Dave Dribin wrote:
Again, what's strange is if I change my cell's superclass to be
NSTextFieldCell, this bind: call does not give an error and it all
works. I also tried subclassing NSActionCell, and that works, too.
Is my cell not implementing some method that
On Aug 19, 2008, at 7:03 PM, Corbin Dunn wrote:
It's not letting me set it to my custom cell. It just beeps (IB
version 3.1, build 670). I think this is because the column is
setup a text field cell, and it will only let me set the class to
an NSTextFieldCell subclass. There's no plain NS
On Aug 19, 2008, at 10:02 AM, Dave wrote:
I'm new to Cocoa and a little confused about the best way to handle
the following:
I'm converting a C based application to Object-C/Cocoa. One of the
objects is used to hold properties which are loaded from a data
file. I have created an object to
>Not sure exactly, but here's a thought: Are you
> deleting and re-
> creating the directory each time you save?
No.
> How are you creating the folder? Are you using the NSDocument -
> fileWrapperOfType:error: method?
The directory is pre-existing in this case. I'm not calling that method
On 20/08/2008, at 11:36 AM, Chris Idou wrote:
I've got a document based app where the document is actually a
directory. Every time I save except the first time I get the above
error whether or not things have changed, and even if the directory
timestamp is unchanged.
Under what circumsta
I am out of the office until 08/25/2008.
I will respond to your message when I return. If you have L3 questions
please contact Omar Perez or my manager Clifford Meyers
Note: This is an automated response to your message "Cocoa-dev Digest, Vol
5, Issue 1484" sent on 8/19/08 5:50:50 PM.
This i
On Sun, Aug 17, 2008 at 8:39 AM, Nicolas Goles <[EMAIL PROTECTED]> wrote:
> Could anyone help me a bit with this ?
Type the following in google...
"enumerate directory contents site:developer.apple.com"
-Shawn
___
Cocoa-dev mailing list (Cocoa-dev@li
I've got a document based app where the document is actually a
directory. Every time I save except the first time I get the above
error whether or not things have changed, and even if the directory
timestamp is unchanged.
Under what circumstances does the above message occur and how do I
On Mon, Aug 18, 2008 at 11:39 PM, <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm using xcode 3.1. I deployed my project by changing the build
> configuration to Release. Now this application is working on Leopard.
> When I try to open the application in Tiger by double clicking it, the
> application
I've got a document based app where the document is actually a directory. Every
time I save except the first time I get the above error whether or not things
have changed, and even if the directory timestamp is unchanged.
Under what circumstances does the above message occur and how do I avoid i
On 20 Aug 2008, at 10:31 am, John Greene wrote:
I had originally thought that I could
just write a method, setTableData in the secondary controller, that
takes an object as an argument, and then use that object to build the
secondary table. This is apparently forbidden by the language, so
what
hi charlie give your code or something clearer
what are you trying to do? a C object runtime? or a wrapper obj-c to
C? (kidding)
maybe you could have the right answers, when I read you, my feelings
is that you don't go in the right direction
On Tue, Aug 19, 2008 at 5:06 PM, Charlie Dickman <[EMAI
On Aug 19, 2008, at 5:31 PM, John Greene wrote:
Hopefully this is a generic enough question that it applies to general
Cocoa development: How do I pass an object between views? That is: I
have an array of objects that I've built using NSXMLParser, and that
populates a table, and clicking on a
--- On Tue, 8/19/08, Charlie Dickman <[EMAIL PROTECTED]> wrote:
> Now, how do I define things like 'self' and
> 'super' to a C program?
You mean outside of an object? You don't. What would it even mean? There's no
concept of "selfness" in a function. If you want there to be a self, you should
c
Hello,
Hopefully this is a generic enough question that it applies to general
Cocoa development: How do I pass an object between views? That is: I
have an array of objects that I've built using NSXMLParser, and that
populates a table, and clicking on a cell changes my view to another
table with
Thanks to all who responded. I must have had a mental block against
this.
Now, how do I define things like 'self' and 'super' to a C program?
On Aug 19, 2008, at 7:38 PM, David Duncan wrote:
On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote:
from within a C (not Objective C) function and m
On Aug 19, 2008, at 3:47 PM, Dave Dribin wrote:
On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote:
You can in IB3; just double click on the cell...then set the class.
It's not letting me set it to my custom cell. It just beeps (IB
version 3.1, build 670). I think this is because the column
Hi Charlie,
The format is like any normal C function.
int MyStaticCFunction(int someArg) {
//invoke myMethod and return the int the myMethod returns
return [objcObject myMethod:someArg];
}
You wrote:
What is the syntax? For example, how do I invoke the method
- (int) myMethod: (int) in
did you mean: (im not sure to understand your problem) ???!!!
#import
int foo(int a, int b) {
return (a + b);
}
@interface myObject: NSObject
-(SInt32)aIntegertFunction:(SInt32)a plus:(SInt32)b;
@end
@implementation myObject
-(SInt32)aIntegertFunction:(SInt32)a plus:(SInt32)b
{
re
Example:
void cFunction(MyObject *myObject) {
int myInt;
int result;
myInt = initializeMyInt();
result = [myObject myMethod:myInt];
printf("result:%i", result);
}
On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote:
What is the syntax? For example, how do I invoke the metho
On Aug 19, 2008, at 4:28 PM, Charlie Dickman wrote:
from within a C (not Objective C) function and make use of the result?
In Objective C I would invoke
[myObject myMethod: myInt];
You invoke it exactly the same way. There is no difference. But you
need to compile as Obj-C.
int foo(id b
What is the syntax? For example, how do I invoke the method
- (int) myMethod: (int) int;
In object myObject
from within a C (not Objective C) function and make use of the result?
In Objective C I would invoke
[myObject myMethod: myInt];
Even better, how do I invoke
- (myObject) myMethod: (m
Sorry, mail trashed the content of my email. re-sending it.
Hi c.
When using IKImageBrowserPathRepresentationType or
IKImageBrowserNSURLRepresentationType, ImageKit automatically fill the
pasteboard for you for convenience when you start a drag.
If you use another representation you will ha
On Aug 19, 2008, at 2:53 PM, Gilbert Mackall wrote:
I have a C function from which I would like to call a method. I
can't find any documents the cover how to do this.
You call it just like you call any other method. Your C function will
need to be compiled with the Obj-C compiler however. E
Hi Gilbert.
You just have to make sure that your C function is in a .m file (not
a .c file) and have the proper header included. Then you just call the
method.
-Kenny
On Aug 19, 2008, at 2:53 PM, Gilbert Mackall wrote:
I have a C function from which I would like to call a method. I
On 19-Aug-08, at 4:29 PM, Christophe Bismuth wrote:
Dear community,
I've developed a Java application using JavaMail library to get my
Gmail
messages using IMAP.
I'd like to switch my code from Java to Cocoa, is there any official
Apple
Cocoa API for IMAP? Are Mail API published?
Unfort
On Aug 19, 2008, at 5:19 PM, Corbin Dunn wrote:
You can in IB3; just double click on the cell...then set the class.
It's not letting me set it to my custom cell. It just beeps (IB
version 3.1, build 670). I think this is because the column is setup
a text field cell, and it will only let
I have a C function from which I would like to call a method. I can't
find any documents the cover how to do this.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Dear community,
I've developed a Java application using JavaMail library to get my Gmail
messages using IMAP.
I'd like to switch my code from Java to Cocoa, is there any official Apple
Cocoa API for IMAP? Are Mail API published?
Thank you,
Christophe
___
On Aug 19, 2008, at 2:20 PM, Dave Dribin wrote:
On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote:
Hello,
When I hit the "Delete" key in one of my table views, I get the
following error logged to the console:
Object is not usable with binder of class
NSTextValueBinder
Further informatio
Figured it out. I just need to use
addTrackingRect:owner:userData:assumeInside
enjoy
-dave
On Aug 19, 2008, at 2:50 PM, David Alter wrote:
I just realized that NSTrackingArea is 10.5 and up. I need to
support 10.4. mouseEntered and mouseExited have been part of
NSResponder from 10.0. To re
I just realized that NSTrackingArea is 10.5 and up. I need to support
10.4. mouseEntered and mouseExited have been part of NSResponder from
10.0. To receive these events in 10.4 what should I do?
thanks
-dave
On Aug 19, 2008, at 12:55 PM, Quincey Morris wrote:
On Aug 19, 2008, at 12:04, Da
On Aug 19, 2008, at 3:27 PM, Dave Dribin wrote:
Hello,
When I hit the "Delete" key in one of my table views, I get the
following error logged to the console:
Object is not usable with binder of class
NSTextValueBinder
Further information: I have one column with a custom NSCell subclass.
On Aug 18, 2008, at 10:57 PM, Michael Ash wrote:
Note that depending on what kind of results you want, even if all of
your data is within the BMP, this *still* won't save you.
As a really basic example, consider a simple, obvious character like
é. (That's an e with an acute accent on it if you
Hello,
When I hit the "Delete" key in one of my table views, I get the
following error logged to the console:
Object is not usable with binder of class
NSTextValueBinder
I also don't get the typical "Beep" that happens when a key press goes
off the end of the responder chain. What doe
Hey Bart -
Understanding the "File's Owner" is really an essential part of
understanding how to use Interface Builder effectively. At the most
basic level, all NIBs are loaded at runtime with a call to -[NSBundle
loadNibNamed:owner:]. The method takes two arguments, a NIB name which
is th
On Aug 19, 2008, at 12:04, David Alter wrote:
I'm a little confused on the mouse tracking. I have a view and I
want to track when the mouse enters and exits it. If I set
setAcceptsMouseMovedEvents to true for my window, (void)mouseMoved:
(NSEvent *)theEvent will get called. But, - (void)mous
I'm a little confused on the mouse tracking. I have a view and I want
to track when the mouse enters and exits it. If I set
setAcceptsMouseMovedEvents to true for my window, (void)mouseMoved:
(NSEvent *)theEvent will get called. But, - (void)mouseEntered:
(NSEvent *)theEvent and - (void)mouse
On 19-Aug-08, at 12:52 PM, Jeff Mesnil wrote:
On Tue, Aug 19, 2008 at 1:37 PM, Jeff Mesnil <[EMAIL PROTECTED]>
wrote:
The application is behaving as expected, the model (the ovals) are
kept in MyDocument and the DrawView just draws them.
But I was wondering if that was the "right" Cocoa way t
On Aug 19, 2008, at 13:02 , Dave wrote:
My specific questions are:
Is the NSString allocation and initWithCharacters code the best way
to do this? If so, what would the setter look like in this case? If
not what is a better way of doing it?
Hey Dave,
I don't think that initWithCharacter
On Aug 19, 2008, at 12:39 AM, [EMAIL PROTECTED] wrote:
How can I build application as backward compatible.
Usually if an app wouldn't launch, the reason why it wasn't launchable
is printed to the system console. Can you open Console.app and tell us
the error that gets printed when you tr
Hi,
I'm new to Cocoa and a little confused about the best way to handle
the following:
I'm converting a C based application to Object-C/Cocoa. One of the
objects is used to hold properties which are loaded from a data file.
I have created an object to represent the C Structure as so:
@i
In my application i use a custom text container to lay text around a
hole, the problem occurs when i have two holes side by side.
In this case the line would be broken down in to three line fragments.
The problem occurs when the rightmost fragment has bigger font than
the ones on the left.
On Tue, Aug 19, 2008 at 1:37 PM, Jeff Mesnil <[EMAIL PROTECTED]> wrote:
> The application is behaving as expected, the model (the ovals) are
> kept in MyDocument and the DrawView just draws them.
> But I was wondering if that was the "right" Cocoa way to do so, to use
> an IBOutlet to connect a NSV
I've been searching, but I can't find the documentation explaining
how to include frameworks in your app bundle (third-party
frameworks, for example), so that your user does not have to
install these frameworks. Could someone point me at the correct
documentation/build settings? Thanks.
This
Am 19.08.2008 um 15:36 schrieb "Carmen Cerino Jr."
<[EMAIL PROTECTED]>:
if ([_delegate respondsToSelector:
@selector(SGDecompDataProc:)]){
The signature of your method seems to be:
SGDecompDataProc:trackingFlags:displayTime:displayDuration:validTimeFlag
s:
not:
SGDecompDataProc
On Aug 18, 2008, at 9:46 PM, Oleg Krupnov wrote:
I could go the simple and dull way and create a separate instance of
NSTextView for each box, but I am afraid this could be a waste of
resources, because layout manager is costy. Also, most of time I only
need to display text in boxes, not to edi
Hi Mike,
I'm using an NSViewAnimation to fade the windows, which I suspect uses
the alpha channel. A window close is nearly instantaneous, so I'm not
worried about the tiny window between when I check to see if the
window is exposed and when it closes.
Of course, because of the transparen
Hey Andy,
It's not really the cpu cycles that I'm worried about. It's how
quickly a large number of windows closes. I'm fading each window for
1/2 second, in order of appearance. It looks really nice, but there
isn't really a need to fade the windows that aren't visible and in
fact, cause
Hi Amin,
Unless I am misunderstanding, this would tell me if it was onscreen,
but not if the window was exposed (not hidden by other windows).
Jason
On Aug 15, 2008, at 5:03 PM, [EMAIL PROTECTED] wrote:
Hey folks,
I'd like to fade my window out if any portion of it is visible to the
user,
Hi,
I'm currently learning Cocoa by reading the 3rd edition of "Cocoa
Programming for Mac OS X".
One of the excercise is to create an application to draw ovals.
I ended up with a project like this:
DrawView is a subclass of NSView which is responsible to draw the ovals
MyDocument is a subclass of
This is maybe an answer as well as a question.
Doesn't the bindings call the init method when creating a class
object? Couldn't you just overwrite the init method on your custom
class to set any necessary values?
Justin Giboney
On Aug 19, 2008, at 8:27 AM, Chris Poliquin wrote:
Hi,
I ha
Subclass and override newObject which is declared in
NSObjectController.h
You can set any properties you like from there.
-
RONZILLA
On Aug 19, 2008, at 7:27 AM, Chris Poliquin <[EMAIL PROTECTED]>
wrote:
Hi,
I have an ArrayController in IB to manage an array of NSObj
Hi,
I have an ArrayController in IB to manage an array of NSObjects (a
custom class) for a TableView. When a new item is inserted via a
button connected to insert: a new instance of my class is created and
appears in the table. However, I want to be able to control the
property values o
*Smacks forehead*
Believe it or not I had that originally and it didn't work. I must of
had a type-o in the function header that I was passing to
respondsToSelector.
Thank you all. I am going to go back to making an ass out of myself in
the privacy of my own home.
Cheers,
Carmen
On Aug
On Tue, Aug 19, 2008 at 2:33 PM, Carmen Cerino Jr. <[EMAIL PROTECTED]> wrote:
> Sorry about the sketchy details. Basically I have a wrapper class for the
> Sequence Grabber, and I want to setup a delegate for the decompression
> callback.
>
> This is where I use the respondsToSelector method:
> sta
Sorry about the sketchy details. Basically I have a wrapper class for
the Sequence Grabber, and I want to setup a delegate for the
decompression callback.
This is where I use the respondsToSelector method:
static void SGVideoDecompTrackingCallback(
void *decompressionTrackingR
--- On Tue, 8/19/08, Sumner Trammell <[EMAIL PROTECTED]> wrote:
> Unless I'm being completely stupid about this, he could
> have done this, right?
>
> [[[self windowControllers] objectAtIndex:0]
> setShouldCascadeWindows:NO];
>
>
> Or better yet, this?
>
> [aController setShouldCascadeWi
Sorry, didn't know I had to connect the outlets of the mydocument
class through file owner This basically solved my problems.
Op 19 aug 2008, om 14:03 heeft Graham Cox het volgende geschreven:
On 19 Aug 2008, at 7:03 pm, Bart wrote:
Another similar problem.
I would like to add a sheet
On 19 Aug 2008, at 7:03 pm, Bart wrote:
Another similar problem.
I would like to add a sheet to the button I've created. Normally I
would create an IBOutlet and connect the window for the sheet to it,
combined with a code to open:
[NSApp beginSheet:totalsSheet
modalForWindow
On Aug 18, 2008, at 9:23 PM, Graham Cox wrote:
On 19 Aug 2008, at 11:53 am, John Joyce wrote:
I wonder if it wouldn't make sense to just start trying to build
some new form of flex in Objective-C... so that it uses NSString
and NSMutable string ?
I'm looking at the Flex source code now...
___
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/Unsubscribe/Update your Subscription:
http://lists.apple.com
Another similar problem.
I would like to add a sheet to the button I've created. Normally I
would create an IBOutlet and connect the window for the sheet to it,
combined with a code to open:
[NSApp beginSheet:totalsSheet
modalForWindow:[NSApp mainWindow]
modalDe
Am Mo,18.08.2008 um 19:15 schrieb Charles Srstka:
On Aug 18, 2008, at 6:18 AM, Robert Černý wrote:
Actually,I'm trying to debug some weird problems with clipboard. My
problem
is that data copied into clipboard from legacy java application
doesn't
match data pasted into Cocoa application.
As written, 70 microseconds. When I set the calendar's time zone to GMT, the
time drops to 43 microseconds. Since my app will only work with dates in
GMT, this is a plus. Even so, 40 microseconds is far slower than the 7 - 8
microseconds offered by -[NSCalendarDate dayOfYear]. Unless someone has
an
Thanks,
Again sloppy programming didn't know this could cause problems
although the compiler was not worried. I guess I will not make such an
error anymore in the future. :o)
Op 19 aug 2008, om 09:31 heeft Graham Cox het volgende geschreven:
On 19 Aug 2008, at 5:08 pm, Bart wrote:
On 19 Aug 2008, at 5:20 pm, Sumner Trammell wrote:
Hi, I'm trying to decipher someone else's code who is no longer
available. He did something that I think I can simplify, but I first
want to make sure I'm not being completely wrong-headed about what I'm
looking at.
First off, does this pers
On 19 Aug 2008, at 5:08 pm, Bart wrote:
I've created a new xcode project, document based cocoa app.
Added this code to the mydocument class:
m:
-(IBAction)getTotals
{
NSLog(@"Hello");
}
h:
-(IBAction)getTotals;
I've created a button in the MyDocument.xib, connected through the
firs
Hi, I'm trying to decipher someone else's code who is no longer
available. He did something that I think I can simplify, but I first
want to make sure I'm not being completely wrong-headed about what I'm
looking at.
He does the following in his MyDocument.m file:
- (void)windowControllerDidLoa
I've created a new xcode project, document based cocoa app.
Added this code to the mydocument class:
m:
-(IBAction)getTotals
{
NSLog(@"Hello");
}
h:
-(IBAction)getTotals;
I've created a button in the MyDocument.xib, connected through the
firstresponder to the getTotals method. Everyth
Hello, Oleg.
> I am developing a custom view, sort of a simple graphic editor, where
> the user can draw graphic boxes of different size. Each box should
> display its own attributed string bounded by its own size, and when
> the user double-clicks any box, he becomes able to edit the box's text
>
79 matches
Mail list logo