I'm working on an application in which users enter data into a table,
but I need to substitute a greater-than symbol (>) for a right-arrow
symbol (→, unicode: 2192) as the user presses they key (or copies the
text, or whatever). After looking at the docs and this list, I'm not
much closer
How can I [someNSTextField setStringValue:someString] (to some value I
only learn at run time), and then resize the window that contains it
so the string is visible? Or, is there something I can set in
Interface Builder that will make this resize happen automatically?
I found a sizeToFit i
We're still working on the Moire project together, unfortunately I've
again lost contact with her and have not received any replies to my
correspondence for 10 days or so now. Pinging her here in case gmail's
getting caught in her spam filter or somesuch, hope everything's ok...
:)
--
Best Regard
On Mar 30, 2008, at 7:50 PM, Ben Lachman wrote:
I'm guessing the bugs really should be filed on the documentation
since one page on performance of a highly complex API like CD is
nowhere near enough. My guess is that documentation doesn't get as
many bugs as it should since it is, at the
On Sun, Mar 30, 2008 at 10:23 PM, C Sandeep <[EMAIL PROTECTED]> wrote:
> Im working on an cocoa application that needs to, among other things,
> unpack binary data, into NSString preferably. I have used perl's
> unpack (http://perldoc.perl.org/functions/unpack.html) in the past to
> do such a thi
Hi,
On Mar 29, 2008, at 9:01 AM, Stefan Hafeneger wrote:
I would like to use CAOpenGLLayer instead of NSOpenGLView. I didn't
find any example source code but got it working. I implemented
…
The API documentation says that the viewport is already set to
bounds size before drawInCGLContext:...
Greetings,
Im working on an cocoa application that needs to, among other things,
unpack binary data, into NSString preferably. I have used perl's
unpack (http://perldoc.perl.org/functions/unpack.html) in the past to
do such a thing. I have looked at NSData's documentation, however Im
at a loss on
I'm not sure if using Core Data would make a difference, but I'd just
do this by responding to the menu command by putting up an NSOpenPanel
then processing the filename it returns appropriately. I don't think
there's any magic "proper" way to do this within the document
architecture, excep
Ben:
I was actually just uncovering some of this stuff myself. In my
particular case I am mostly doing inserts so while the KVC stuff is
interesting and very well may be useful at some point, it doesn't
apply to my current situation.
My problem is that I receive data from a connection a
David, Jeff, Ben
There are a few issues here.
First, enough pieces of AppKit and Cocoa Bindings are not thread safe
that, even without Core Data, you just can't do this in this
particular fashion.
If you want multi-threaded work with the view and controller classes
in Cocoa, you'll need to
Hi,
I have a Textured Window with a NSView that has some custom drawing
done in drawRect.
When I click and drag outside the custom NSView
The window moves
(That is exactly what is needed)
When I click and drag within the custom NSView
The window moves
The cust
Dennis,
Well, it might be far from ideal for CD performance, but that doesn't
mean it's bound poorly. It is done exactly to do what we need it to
do, otherwise this binding would have been the first to be targeted
for rewrite.
Creating a gigantic autoreleased NSArray from valueForKeyPath: a
Philip,
Core Data doesn't support client server applications.
Some developers have successfully used it on the client for its data
management (undo, change tracking, notifications, etc) and Cocoa
Bindings support, with an in-memory store they manage themselves. A
few developers have done mor
I have a question regarding implementing copy and paste with
NSManagedObjects--
You're more or less on the right track. Here's an excerpt regarding
moving values between threads which may help you with copy&paste:
At 8:22 AM -0700 3/1/06, [EMAIL PROTECTED] wrote:
The problem with insertions
Hi Gareth,
There were a couple of problems.
1) You should be calling [movements addObject:m] instead of [movements
add:m]
2) You should set the class which the array controller manages in IB
to Movement (the Classname text field)
After doing this, it all works.
Regards,
Milen
On 30 Mar 2
David,
To sum up:
Relationships to entities from which another entity inherits are not
automatically set up properly.
Unfortunately. This is a known issue.
Anyone have any experience with this, or know how to handle this
situation? I suppose I could write a whole bunch of custom code to
han
Daniel,
Each NSOperation is, conceptually, its own thread. In addition to
using NSInvocationOperation to easily dispatch a work function to an
object, you'll also need to follow the multi-threading rules
described in the Core Data Programming Guide.
--
-Ben
_
In the mishmash of Cocoa tutorials and other docs I've read, I never
seem to be led through the fundamentals. With Cocoa doing so much
basic stuff for me, and Xcode stationery doing a bunch more, a few
things seem to fall through the cracks.
I have a pretty straightforward document applicat
Mike,
Each persistent document has its own Core Data stack. When you close
one, and reopen it, it has a new NSPersistentStoreCoordinator,
NSManagedObjectModel, and NSManagedObjectContext.
So any bindings to managed objects or their entity descriptions from
the old, deallocated persistent do
On Sat, 29 Mar 2008 20:45:38 -0400, Duncan Champney <[EMAIL PROTECTED]> said:
>My app can create 3D views of the fractal images it creates.
>
>It has an option to save very large versions of these 3D views to disk
>as JPEGs or TIFFs. I generate the images as tiles, then assemble them
>and save the
Oh, sorry, I meant dependent not independent!
Using NSInvocationOperation looks as though it would work fine
assuming that none of my calculations had any dependencies, which is
not always true. I'm currently working on a system that uses
NSOperation objects as delegates for NSManagedObjec
Hi Gareth,
On Sun, Mar 30, 2008 at 10:42 PM, Gareth Davis
<[EMAIL PROTECTED]> wrote:
> I've managed to load the xml and parse what I need from it into a
> bunch of "Movement" objects which I attempt to add to a
> NSArrayController.
Your array controller does not appear to have a content bindi
Hi all,
I have a problem with NSCollectionView and its item subviews.
I don't seem to be able to resize dynamically a subview whatever I
try. I'm trying to have different heights of subviews that are loaded
dynamically but it appears that this is not possible.
Has anyone else encountered t
hi,
I'm having some trouble with completing a simple proof of concept app.
The requirement is to process a simple xml document and display the
results in a two column table.
I've managed to load the xml and parse what I need from it into a
bunch of "Movement" objects which I attempt to ad
You have to pass a pointer to the object pointer not the object pointer
itself, i.e &fh not fh, when adding arguments to an invocation. So, the
correct call is:
[invocation setArgument:&fh atIndex:2];
Because objective-c objects' memory layout begin with a pointer to the
object's class, what actua
On 30 Mar 2008, at 17:49, [EMAIL PROTECTED] wrote:
Is there any way to change Finder color file label with use of Cocoa?
No. But there is FSSetCatalogInfo. Can be used from Cocoa.
Kind regards,
Gerriet.
___
Cocoa-dev mailing list (Cocoa-dev@lis
On Mar 30, 2008, at 3:21 PM, Trygve Inda wrote:
Or drop down just a step to just use NSBitmapImageRep instead of
NSImage which avoids all the caching issues (since you never make an
NSImage). It is very well suited for "pixel level work that is saved
in a file" (since you'll need it to do NS
> Or drop down just a step to just use NSBitmapImageRep instead of
> NSImage which avoids all the caching issues (since you never make an
> NSImage). It is very well suited for "pixel level work that is saved
> in a file" (since you'll need it to do NSBitmapImageRep's
> representationUsingType: p
On Mar 30, 2008, at 3:30 PM, Jeff LaMarche wrote:
[invocation target] performSelector:[invocation selector]
withObject:fh];
Actually, that would be:
[[invocation target] performSelector:[invocation selector]
withObject:con];
missed a bracket when I copied and pasted :)
__
I'm having an unusual problem with an NSFileHandle. I'm creating an
NSFileHandle and initializing it with a file descriptor that's
actually a network socket. I'm able to send and receive data using it
and it works fine. Then, I pass the NSFileHandle instance as the first
argument of an NSIn
On Mar 30, 2008, at 12:02 PM, Jens Alfke wrote:
On 30 Mar '08, at 8:34 AM, Trygve Inda wrote:
How did you work around this?
Basically I am opening a bitmap drawing an NSImage into it, then
pixel-level
tweaking the bitmap, and saving it to disk as a jpg.
You might want to drop down a le
On 30 Mar '08, at 8:34 AM, Trygve Inda wrote:
How did you work around this?
Basically I am opening a bitmap drawing an NSImage into it, then
pixel-level
tweaking the bitmap, and saving it to disk as a jpg.
You might want to drop down a level and use CGImage for your bitmap.
CG is statel
On 30 Mar 2008, at 01:47, [EMAIL PROTECTED] wrote:
I use in some Cocoa app a weak linked library.
[...]
if (weak_function == NULL)
{
NSLog(@"%s weak_function %p NULL", __FUNCTION__, weak_function );
}
else
{
NSLog(@"%s weak_function %p non-NULL", __FUNCTION__, weak_function
On Mar 30, 2008, at 8:45 AM, Piotr Adamski wrote:
Hi All.
Is there any way to change Finder color file label with use of
Cocoa? I've managed to retrive it (with use of MDItemCopyAttribute)
but have no idea how to change it. I've been googling around with no
success, so I've decided to ask
on 3/30/08 4:26 AM, [EMAIL PROTECTED] purportedly said:
> NSString* regexFormat=@"[+-]?([0-9]*\.?[0-9]+)?[A-Z|a-z][A-Z|a-z|
> 0-9]*([+-]?([0-9]*\.?[0-9]+)?[A-Z|a-z][A-Z|a-z|0-9]*)*";
> NSString* equation =@"X1+2X2+3X3";
The compiler should have warned you about this: backslashes indicate escape
s
Hi All.
Is there any way to change Finder color file label with use of Cocoa?
I've managed to retrive it (with use of MDItemCopyAttribute) but have
no idea how to change it. I've been googling around with no success,
so I've decided to ask you.
Thanks.
Piotr Adamski || [EMAIL PROTECTED]
>
> On 29.03.2008, at 18:54, Adam R. Maxwell wrote:
>>
>> Drawing into an NSImage is explicitly documented to be thread safe
>> in the article you linked to, and each thread has its own graphics
>> context. The post I linked to does indicate that you might want to
>> use [image setCacheMode:NSIm
On Mar 30, 2008, at 6:10 AM, Thomas Engelmeier wrote:
On 29.03.2008, at 18:54, Adam R. Maxwell wrote:
Drawing into an NSImage is explicitly documented to be thread safe
in the article you linked to, and each thread has its own graphics
context. The post I linked to does indicate that you
It's called "badging"
http://developer.apple.com/samplecode/DockTile/listing5.html
On Mar 30, 2008, at 10:42 AM, Samvel wrote:
I'd like my application to show number of completed tasks in Dock
Icon as it is done in Mail (number of unread emails). Anyone knows
how to do that or where I can r
I'd like my application to show number of completed tasks in Dock Icon
as it is done in Mail (number of unread emails). Anyone knows how to
do that or where I can read about such functionality?
The idea is widely used by next applications:
Adium
Mail
iGetter
Transmission
XCode
They all add
It does not say to not use longjmp, it sais to not use longjmp to jump
outside this function.
Just encapsulate your code in a @try / @catch() block to ensure that
even if an exception occurs (@throw use longjmp in the 32 bits
runtime), it will jump in your catch block and not outside you
> void MyDisplayReconfigurationCallBack (
>CGDirectDisplayID display,
>CGDisplayChangeSummaryFlags flags,
>void *userInfo
> );
>
> Your callback function should avoid attempting to change display
> configurations, and should not raise exceptions or perform a non-local return
> such as
On 29.03.2008, at 18:54, Adam R. Maxwell wrote:
Drawing into an NSImage is explicitly documented to be thread safe
in the article you linked to, and each thread has its own graphics
context. The post I linked to does indicate that you might want to
use [image setCacheMode:NSImageCacheNev
Hi all,
I've found the problem and a solution. It didn't have anything to do
with the NSSplitView but with the the column resizing of the
NSOutlineView instance. What happens is that maybe for optimization
reasons, during a live resize, the outline view only resizes the
columns when it fi
On 27.03.2008, at 08:24, Wesley Smith wrote:
I'm trying to make an NSWindow that takes up the entire screen
including the menu bar but is not actually a fullscreen window. I
know this is possible with Carbon, but I can't figure it out with
Cocoa. Whenever I call [NSMenu setMenuVisible:TRUE], t
Hi All,
I am new to both cocoa and regex, so I would not be surprised to see
that I just did a silly mistake in the regex in the following code:
NSString* regexFormat=@"[+-]?([0-9]*\.?[0-9]+)?[A-Z|a-z][A-Z|a-z|
0-9]*([+-]?([0-9]*\.?[0-9]+)?[A-Z|a-z][A-Z|a-z|0-9]*)*";
NSString* equation =@"X
Hi there,
Can core data be used to create a Client/Server type application? I heard that
there are a few problems when accessing the persistent store via multiple
clients.
Many thanks,
Phil.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pl
On Mar 29, 2008, at 11:48 PM, Jeff LaMarche wrote:
Are you using separate managed object contexts for each thread?
According to the documentation here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdMultiThreading.html
That's the way to do it - pass managed
I just added a call to scrollRangeToVisible: that is sometimes called
from my text view's mouseDown method. Now, whenever
scrollRangeToVisible: is called on a range that is not visible, the
next drawRect of the text view crashes with the exception: "***
NSLayoutManager, _getGlyphBuffer():
I'm having a problem with huge, bloated nib files using IB 3.0. If I
modify and save any of my older nib files, they jump from under 20k
apiece to over 3 MB (in rare instances over 20 MB) apiece!
Viewing the contents of the keyedobjects.nib file reveals the bloat is
coming from huge chunks
"CocoaHeads is a group devoted to discussion of Apple Computer's Cocoa
Framework for programming on MacOS X. During monthly meetings, members
present on their projects and offer tutorials on various programming
topics."
http://cocoaheads.org/us/SiliconValleyCalifornia/index.html
On Sat, Mar 29,
I had some problems with OutlineView and SplitView redraws. I switched
over to RBSplitView and its worked great since. I think the general
consensus is that NSSplitView can behave strangely.
http://www.brockerhoff.net/src/rbs.html
Adam
On Sat, Mar 29, 2008 at 7:57 PM, Milen Dzhumerov <[EMAIL PR
I just came across this great Apple NSTreeController / NSOutlineView example.
It incorporates a lot of 10.5 style techniques into one example.
-Image and text cells
-iTunes like groups in OutlineView
-10.5 Window styles
-CoreAnimation
If this is comenly known I appologize, but I have spent a lot
On Fri, 28 Mar 2008, Mike wrote:
Or it is a prototype machine from Apple that was never a real production
machine but that got out into the wild somehow. When I worked there, all the
prototype machines used to have their serial # (and other firmware info)
missing.
-m
==
Ke
I have an OutlineView bound to an NSTreeController. I would like to
set the selected row of the OutlineView at the applications launch to
the second row. It defaults to the first. I have tried many
combination of the code below to no avail. If I trigger the code from
a button it works just fine. So
55 matches
Mail list logo