Hi. I've got a popup button with a bunch of GMT offsets configured in
IB, and bound via selectedTag to an NSArrayController's selection's
gmtOffset property. Each item in the menu has a tag value set. The
binding is properly setting the values of the selection, even if
multiply selected, an
Le 18 mai 09 à 08:27, Eric Schlegel a écrit :
On May 17, 2009, at 9:37 PM, Christopher Hansen wrote:
First of all, I want to be able to set them, so I primarily need
the setters, but I also want the getters because I want to be able
to restore the previous values when my app exits or is s
Hi,
I have a buffer containing JPEG image data. I need to display this buffer in
form of images. I copied this buffer to a file and then used the following:
CGDataProviderRef ref = CGDataProviderCreateWithFilename([appFile
UTF8String]);
CGImageRef imgRef =
CGImageCreateWithJPEGDataProvider(ref,NU
On May 14, 2009, at 10:45 AM, Christopher Hansen wrote:
I'm writing a game and I need to set the key and key repeat
thresholds in my Cocoa application. The functions needed to do to
this under Carbon (Events.h) are:
LMGetKeyThresh
LMSetKeyThresh
LMGetKeyRepThresh
LMSetKeyRepThresh
I'm loo
Hi ,all
I completed an application about tableview and audio files. Allow you to
drag audio files into the tableview .
It will play the audio file if you double click the tableview's cell.
Now, I want to implement this result. When I drag and drop a sound file
into the tableview, I want
NSString * cPathName;// cPathName is your specified path
NSFileManager *fm = [NSFileManager defaultManager];
[fm createDirectoryAtPath:cPathName withIntermediateDirectories:TRUE
attributes:nil error:nil];
with which you can create any folder.
> Date: Mon, 18 May 2009 16:34:24
Hi,
I've just implemented an NSSearchField control with autocomplete using
the delegate method
control:textView:completions:forPartialWordRange:indexOfSelectedItem:
It appears that the popup list of autocomplete candidate strings
always pops up below the NSSearchField, even if the search
Hi all,
I am trying to drag image files from my application to other
applications like Mail,iPhoto,TextEdit etc. I am using
NSFilesPromisePboardType to do this.
This is the code snippet:
[inPasteboard declareTypes : [NSArray
arrayWithObjects:NSFilesPromisePboardType, nil] owner:self]
-- And it is easy to wrap in a Cocoa wrapper -- I've done so. The
interface is appended to this email.
The libxls open source project on sourceforge.net allows you to read
and parse .xls files. This library works under OSX - I know, I'm one
of the developers :-)
//
// XLSWorkbook.h
// PE
On May 18, 2009, at 4:01 AM, Michael Ash wrote:
Perhaps you should have taken more than a first glance. For example,
here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdBasics.html#/
/apple_ref/doc/uid/TP40001650
"Core Data is not a relational database or a
The database situation on Cocoa is not great. Apple should spend some of that
cash hoard building or buying an object database.
If anyone wants an interesting project, the db4o object database which is
written in Java and GPLed comes with a program called Sharpen which translates
Java into C#
On May 17, 2009, at 9:07 PM, Eric E. Dolecki wrote:
I just want to be sure of something - if I set the images to cache,
when I
load the same url again, the image is coming from memory - because I
put in
a progress bar and the images loaded already I thought would have an
instantly populated
On May 18, 2009, at 5:09 AM, Dave Robertson wrote:
Is there a way to control the position or appearance of an
autocomplete popup? I've noticed that autocompletion in Xcode does
the right thing - is anyone able to suggest how this could be
achieved?
IMHO, the default text completion list
Hello,
when the objective C runtime engine throws an exception during
runtime, I get messages like
2009-05-18 16:31:58.370 Control[27911:813] *** -[NSKeyedUnarchiver
initForReadingWithData:]: data is NULL
in the console of Xcode. How do I find out where in my code this
problem occured?
On 18 maj 2009, at 07.48, ALEXander wrote:
when the objective C runtime engine throws an exception during
runtime, I get messages like
2009-05-18 16:31:58.370 Control[27911:813] *** -[NSKeyedUnarchiver
initForReadingWithData:]: data is NULL
in the console of Xcode. How do I find out where in
Perhaps this is a tad simplistic, but have you searched your code for
NSKeyedUnarchiver? Can't be too many instances of that...
> From: ALEXander
> Subject: Debugging Information
>
> Hello,
>
> when the objective C runtime engine throws an exception during
> runtime, I get messages like
>
> 2
On May 18, 2009, at 4:03 AM, Shraddha Karwan wrote:
I have a buffer containing JPEG image data. I need to display this
buffer in
form of images. I copied this buffer to a file and then used the
following:
CGDataProviderRef ref = CGDataProviderCreateWithFilename([appFile
UTF8String]);
CGImage
On 18 May 2009, at 14:04, Chris Idou wrote:
The database situation on Cocoa is not great. Apple should spend
some of that cash hoard building or buying an object database.
If anyone wants an interesting project, the db4o object database
which is written in Java and GPLed comes with a pr
I'm going to can the excerpts from other posts for a moment and bring
this back around to helping to solve Cocoa development problems.
Though you might have to scroll down a bit to get there... :)
There are actually four different specific technical issues that have
been discussed concrete
Thanks - that's good information.
On Mon, May 18, 2009 at 10:35 AM, Keary Suska wrote:
> On May 17, 2009, at 9:07 PM, Eric E. Dolecki wrote:
>
> I just want to be sure of something - if I set the images to cache, when I
>> load the same url again, the image is coming from memory - because I put
Thanks, Chris.
I had actually started to wonder about that myself, and I think this is the
right solution. I haven't had to do event handling before (graphics are my
norm), but I was given the task of replacing the portions of our Mac OS X code
that are not supported for 64-bit since I'm the o
Yah, it's getting there. It's just not there yet.
The data modeling still isn't quite up to ORM
standards we had nearly 30 years ago.
When we dink with PHP and Python which have
handy APIs, it can get to be frustrating.
Just provide input via the bugreporter and
comments to the docs, and st
Hi, I have an NSPopupButton which I am populating programmatically.
The button class is set to square because I need it to be bigger than
the standard popup button. I am setting an image on each menu item
(the images are produced as PDF images).
All the images appear correctly, but when I p
Hi,
I have an basic Cocoa app in which I'd like to take over the function keys
(F1-F12) whenever when my app is active. For example, if my app is active
when F1 is pressed I'd like to detect, then "eat" that event so that it is
not processed by the system.
Any pointers would be much appreciated,
is this possible, I have a cookie manager app (Safari Cookies), and
ive only just noticed a bug, where if you delete some cookies, and
then visit a secure site, all the previously deleted cookies will re-
appear?
I know it was possible to flush the cookie cache under Tiger, but can
it be d
Hello,
I'm quite new to Cocoa programming, and I've spent already some time
looking for a solution - maybe somebody here will be able to help.
Basically, I want to do quite a simple thing: capture a "keyDown"
event when a menu is opened. So the user opens a menu, presses a key
and I want
Hi. I've got a popup button with a bunch of GMT offsets configured in
IB, and bound via selectedTag to an NSArrayController's selection's
gmtOffset property. Each item in the menu has a tag value set. The
binding is properly setting the values of the selection, even if
multiply selected, an
> Basically, I want to do quite a simple thing: capture a "keyDown" event
> when a menu is opened. So the user opens a menu, presses a key and I want
> to know what key it was.
> Unfortunately NSMenu isn't an NSResponder, so I can't capture it there.
> Also, the event isn't passed down to NSApp
I'm trying to programatically set the initial file url (path,
filename) of an Core Data NSPersistentDocument, or if that is not
possible, at least populate the Save panel with an initial filename.
At first, I was using -[NSDocument
saveToURL:ofType:forSaveOperation:error:]. That worked fin
On May 17, 2009, at 4:40 PM, Brad Shappell wrote:
Hi,
I have an basic Cocoa app in which I'd like to take over the
function keys
(F1-F12) whenever when my app is active. For example, if my app is
active
when F1 is pressed I'd like to detect, then "eat" that event so that
it is
not proces
On Mon, May 18, 2009 at 2:36 PM, Rick Mann wrote:
> Hi. I've got a popup button with a bunch of GMT offsets configured in IB,
...
Don't re-post. If someone has an answer, they'll answer. It's only
been 13 hours.
--
I.S.
___
Cocoa-dev mailing list (C
Please don't repost the same message with no added content. If anyone
wants to help you, they will.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the m
On May 18, 2009, at 13:47:31, I. Savant wrote:
On Mon, May 18, 2009 at 2:36 PM, Rick Mann
wrote:
Hi. I've got a popup button with a bunch of GMT offsets configured
in IB,
...
Don't re-post. If someone has an answer, they'll answer. It's only
been 13 hours.
Thank you for some reply. If
On Mon, May 18, 2009 at 4:56 PM, Rick Mann wrote:
> Thank you for some reply. If I could tell that my message had appeared on
> the list, I wouldn't have re-posted. My list settings are set to send me
> copies of my own posts, and I also searched the archives. My post doesn't
> show up, and I nev
On Mon, May 18, 2009 at 3:14 PM, Benjamin Stiglitz wrote:
> ...but I first need to ask the standard question: waht are you
> trying to achieve?
Adding: mention the scope too - do you want to do this for your app
or all apps and maybe even the Apple menu too? What about context
menus? NSPopUpBu
On Mon, May 18, 2009 at 3:54 PM, Kevin Gessner wrote:
> Look into creating a CGEventTap -
> http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html.
> You'll want your callback to look for F-key events, and return NULL to "eat"
> the event.
Nah
Hello all,
I'm implementing something which requires me to perform various tasks
on a collection of files supplied by the user. I'd like to be able to
offer my users the ability to select a ".savedSearch" file and perform
those tasks on the files which result from that search.
What I'm d
On 2009 May 17, at 17:38, Russell Gray wrote:
is this possible, I have a cookie manager app (Safari Cookies), and
ive only just noticed a bug, where if you delete some cookies, and
then visit a secure site, all the previously deleted cookies will re-
appear?
I know it was possible to flus
On Mon, May 18, 2009 at 5:12 PM, I. Savant wrote:
> Nah ... if he only wants to listen for the function keys when the
> app is active, creating an NSApplication subclass and overriding
> -sendEvent: is sufficient. If the key code / flags is what you want,
> dispatch the message however you wish,
Rick Mann wrote:
If I could tell that my message had appeared on the list, ...
List archives, most recent first:
http://lists.apple.com/archives/cocoa-dev/2009/May/
It may take 15-20 minutes for the archives to update with recent
posts, or even longer.
... and I also searched the arc
I need to trap-and-replace various keypresses in the field editor. I
do this with -controlTextDidChange: in my delegate. So, when the user
presses ">", I replace it with a "superset of" (⊃) character (in case
this does not come out on the list, I'm going to represent the
"superset of" cha
On Mon, May 18, 2009 at 5:32 PM, Kyle Sluder wrote:
> Is that going to take care of global hotkeys, like in System
> Preferences or Spotlight?
You have a point, and looking at the original post again, I see that
this appears to be what the OP is after. Sorry for the noise.
--
I.S.
On Mon, May 18, 2009 at 5:39 PM, Greg Guerin wrote:
> Conclusion: Apple's Archive Search is fubar.
More to the point: Apple's list serve in general is fubar.
--
I.S.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
First, let me say thanks for your reply. I think I was able to
implement a similar algorithm for detecting when a cell has gone off-
screen by overriding the table view's -willRemoveSubview:.
What I'm doing is starting an animation by adding it to the cell's
layer, and in response to the cel
A possible solution is to insert the following line between [fieldEd
setString ... and [fieldEd setSelected ... (the two lines at the end
of the code):
[fieldEd setFont:[NSFont fontWithDescriptor:[[fieldEd font]
fontDescriptor] size:[[fieldEd font] pointSize]]];
This will set the font for
>Core Data solves that through the use of a SQLite backing store. SQL based
>data storage is the standard means of achieving incremental retrieval
>and storage of data in our industry.
If Core Data talked to standard databases like Oracle etc, then I can see that
as a selling point. But sinc
Hi Gideon,
It sounds like the PDF image is being rasterized at the point you sent
it on the menu item, and being cached into a NSCachedImageRep; for the
subsequent menu items the cache is used.
If you can arrange for the image to be rasterized before the being set
on the menu item, it wou
If you're trying to say what you think CoreData 'should' be - then
take it up with Apple. (which is not this list, by the way)
This whole thread is depressing. Is anyone out there who is trying to
say that CoreData should be an object database capable of reading the
docs? If so, what part o
You should consider trying cocoabuilder.com. That list archive/search
functionality is great.
On 18-May-09, at 5:39 PM, Greg Guerin wrote:
Rick Mann wrote:
If I could tell that my message had appeared on the list, ...
List archives, most recent first:
http://lists.apple.com/archives/co
On 18-May-09, at 5:02 PM, I. Savant wrote:
On Mon, May 18, 2009 at 4:56 PM, Rick Mann
wrote:
Thank you for some reply. If I could tell that my message had
appeared on
the list, I wouldn't have re-posted. My list settings are set to
send me
copies of my own posts, and I also searched the
Hello,
The NSEvent Reference documentation for the keyCode method states that "the
value returned is the same value returned in the kEventParamKeyCode when using
Carbon Events."
Are the virtual key codes available in a Cocoa-based header? The only virtual
keycode definitions I've been able to
On Mon, May 18, 2009 at 10:44 PM, Christopher Hansen
wrote:
> The NSEvent Reference documentation for the keyCode method states that "the
> value returned is the same value returned in the kEventParamKeyCode when using
> Carbon Events."
>
> Are the virtual key codes available in a Cocoa-based hea
>On 5/13/09 9:58 AM, Nick Zitzmann said:
>
>>> But how limit the file type to sound file only available when drag
>>> and drop files into tableview?
>>
>>You need to check for that in your validateDrop method, and return YES
>>if the desired file type is detected and NO otherwise.
>
>And you can
On May 18, 2009, at 9:28 PM, Bright wrote:
I am a novice of Cocoa. So can you tell me detailed about the
specify the file type to Audio File
when dragging a file to tableview?
I tried the "validateDrop method" and NSworkspace, but failed.
That depends. Can you please post your code
Lol! In the process of moving from Carbon to Cocoa, I ripped out the
Carbon.framework. I just thought there might be a better place to include them
from.
Thanks, Jim.
Christopher
From: Jim Correia
To: Cocoa-dev@lists.apple.com
Sent: Monday, May 18, 2009 9:
>On May 18, 2009, at 9:28 PM, Bright wrote:
>
>> I am a novice of Cocoa. So can you tell me detailed about the
>> specify the file type to Audio File
>> when dragging a file to tableview?
>>I tried the "validateDrop method" and NSworkspace, but failed.
>
>
>That depends. Can you please
On Mon, May 18, 2009 at 11:34 PM, Christopher Hansen
wrote:
> Lol! In the process of moving from Carbon to Cocoa, I ripped out the
> Carbon.framework. I just thought there might be a better place to include
> them from.
You don't need to link against Carbon to include the header files.
--Kyl
Hi Bill,
Thanks for your high-level assessment. I've long admired your
technical skills and writing, so it is with much respect that I
offer some counterpoint. I'm compelled because I have a vested
interest and I love Core Data.
On 18/5/09, Bill Bumgarner wrote:
sticking a SQLite datab
On May 18, 2009, at 10:15 PM, Bright wrote:
Hi ,this is my code,but the code can not limit the file to Audio
file :
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id
)info proposedRow:(int)row proposedDropOperation:
(NSTableViewDropOperation)op
{
? ? [tv setDropRow:[tv num
(trying to keep this on-topic...)
On May 18, 2009, at 9:21 PM, Steve Steinitz wrote:
On 18/5/09, Bill Bumgarner wrote:
sticking a SQLite database on a network filesystem and trying to go
multi-user is... just don't do it.
Oops, too late for me. Its been in production at a busy retail shop
Hi,
I get the following errors while displaying the JPEG buffered image.
: Corrupt JPEG data: 584 extraneous bytes before marker 0xc0
: Quantization table 0x00 was not defined
: Corrupt JPEG data: 446 extraneous bytes before marker 0xdb
: Bogus marker length
: CGImageCreate: invalid image size:
Hello,
When a menu is open the Menu Manager in HIToolbox handles incoming
events on its own. You be able to capture the events with an embedded
NSView, but I first need to ask the standard question: waht are you
trying to achieve?
Well, I want to know what the user typed when a menu is open, s
Hello,
...but I first need to ask the standard question: waht are you
trying to achieve?
Adding: mention the scope too - do you want to do this for your app
or all apps and maybe even the Apple menu too? What about context
menus? NSPopUpButton menus and the like?
I want to do this for one m
I'm trying to programatically set the initial file url (path,
filename) of an Core Data NSPersistentDocument, or if that is not
possible, at least populate the Save panel with an initial filename.
This is more an NSDocument / UI problem. Pushing this down into the
model layer will make Core D
I used the following function to add text on UIImage. I can display the text
on iPhone Simulator but its not getting displayed on the actual device. What
can be the cause?
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(NULL, w, h, 8, 4 *
65 matches
Mail list logo