Dear list,
I have an application which uses NSTextStorage objects to provide multiple
views of the content of files. In principle, everything seems to be working
fine; I can have multiple views of the same document and edit just fine. In
most cases the text storage is initialized with some cont
Does anyone know a way to get the localized name of the trash folder?
I tried NSFileManager's displayNameAtPath: and LSCopyDisplayNameForRef on
~/.trash, but neither of them seem to be working :(
Thanks,
Aniruddha
___
Cocoa-dev mailing list (Cocoa-dev@
Hello,
I want to execute a command to get a list of libraries for inclusion into my
application
llvm-config --libs
Gives me: -lLLVMXCoreCodeGen -lLLVMXCoreAsmPrinter -lLLVMXCoreInfo
-lLLVMSystemZCodeGen -lLLVMSystemZAsmPrinter -lLLVMSystemZInfo [snip]
Normally it is used such as
expo
On Tue, Apr 6, 2010 at 9:42 PM, Philip Mobley wrote:
> iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad
> right now. Who knows if the iPhone will ever run 3.2 OS or if they will just
> wait until 4.0.
I imagine we'll find out on Thursday.
--Kyle Sluder
On Apr 6, 2010, at 7:06 PM, Henry McGilton wrote:
> There's no NSBezierPath parallel on the phone, so you get down into Core
> Graphics a lot more than with Appkit.
iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad
right now. Who knows if the iPhone will ever run 3.2
I am trying to write an NSView subclass to render a multi-page printout. What I
would like is to use the page/paper size in calculating the dimensions of each
page; for example, if the printout is made up of N rows of items, each item
rendering as 60-point-tall row.
So, assuming 10 rows of item
On Tue, Apr 6, 2010 at 5:24 PM, Chris Tracewell wrote:
>
> On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote:
>
>
> On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke wrote:
>
>>
>> On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
>>
>> I am trying to get NSImageView to alias dropped images, but it refuses
On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote:
> I have to confess that I haven't yet learned UIKit. The bits of iPhone
> development I've done so far have used networking and crypto APIs, and
> CoreAnimation, but hardly any of the UIKit classes.
>
> What would be the best book for me to learn
How does it wreak havoc with undo? Undo seems to work still. In something like
TextExpander, you change the textfield where your expansion goes, and the table
in the left hand side changes as you type. That's what I was aiming for.
But I've found why it suddenly stopped working. I stumbled upo
I'd much appreciate it if you would look. That's precisely the purpose
I need it for; to edit & change tags.
Thanks a lot - Chase.
On Apr 6, 2010, at 4:36 PM, Jens Alfke wrote:
On Apr 5, 2010, at 9:10 PM, Chase Meadors wrote:
I've been searching google for a while, and have repeatedly
s
On Tue, Apr 6, 2010 at 5:28 PM, Chris Idou wrote:
> I don't know, it seems to me like having everything always in synch is nicer.
> The user can see immediately how changing one field is affecting the other.
> And it used to work.
That will wreak havoc with Undo. Continuously updating values is
On Apr 6, 2010, at 17:24, Chris Tracewell wrote:
> On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote:
>
>>
>> On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke wrote:
>>
>> On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
>>
>> I am trying to get NSImageView to alias dropped images, but it refuses.
>>
I am using an NSArrayController.
I don't know, it seems to me like having everything always in synch is nicer.
The user can see immediately how changing one field is affecting the other. And
it used to work.
- Original Message
From: Jerry Krinock
To: Chris Idou
Sent: Wed, 7 April
On 2010 Apr 06, at 16:36, Chris Idou wrote:
> If I turn off Continuously Update Value, it works sensibly,
Turn it off. Look at any of Apple's Sample Code. Also, Cocoa Design Rule #1:
If something is off/on by default, don't change it unless you're knowingly
doing something weird.
> albeit
On Apr 6, 2010, at 12:08 PM, Kazior Fukacz wrote:
> Thanks for your answers!
>
>>> By the way, are you using garbage collection? If not, then you're leaking
>>> several objects (those pointed to by 'netstat', 'pipe', and 'string').
>>
>> Yeah, I suspect that the pipes (and corresponding NSFil
On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote:
On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke wrote:
On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
I am trying to get NSImageView to alias dropped images, but it
refuses.
Nitpick: you mean "antialias". Aliasing is what creates the jaggies,
Can UIViewAnimationTransitionCurlUp/Down be of any use?
On 07/04/2010, at 2:10 AM, Alex Kac wrote:
> Well they may have done it with a private API for CoreImage if that exists
> (not sure). THey may have done it with OpenGL. They may have taken their
> CoreImage code on desktop and ported a par
On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke wrote:
>
> On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
>
> I am trying to get NSImageView to alias dropped images, but it refuses.
>>
>
> Nitpick: you mean "antialias". Aliasing is what creates the jaggies,
> antialiasing smooths them away.
>
>
>
On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote:
> I have to confess that I haven't yet learned UIKit. The bits of iPhone
> development I've done so far have used networking and crypto APIs, and
> CoreAnimation, but hardly any of the UIKit classes.
>
> What would be the best book for me to learn
I've got a problem that I had working, but my app suddenly seems broken, and
I'm not sure if I did something or what. All I know is old versions of my app
work, but now my code base doesn't.
I've got a UI with a NSTableView at the top, and some individual fields at the
bottom. Typical UI wher
I think Dave Mark's iPhone programming books are just what you want.
On Apr 6, 2010, at 6:29 PM, Jens Alfke wrote:
> I have to confess that I haven't yet learned UIKit. The bits of iPhone
> development I've done so far have used networking and crypto APIs, and
> CoreAnimation, but hardly any of
On Wed, Apr 7, 2010 at 12:29 AM, Jens Alfke wrote:
> I have to confess that I haven't yet learned UIKit. The bits of iPhone
> development I've done so far have used networking and crypto APIs, and
> CoreAnimation, but hardly any of the UIKit classes.
>
> What would be the best book for me to learn
There is??
OMG, I forgot to mention I'm on iPhone.
On Apr 6, 2010, at 3:00 PM, Jens Alfke wrote:
>
> On Apr 6, 2010, at 11:48 AM, Development wrote:
>
>> ABMutableMultiValueRef multiValue = ABRecordCopyValue(person,
>> kABPersonAddressProperty);
>> **Crashes here*** CFDictionaryRef
I have to confess that I haven't yet learned UIKit. The bits of iPhone
development I've done so far have used networking and crypto APIs, and
CoreAnimation, but hardly any of the UIKit classes.
What would be the best book for me to learn from? Obviously most of
the books out there don't ass
On Apr 6, 2010, at 11:48 AM, Development wrote:
ABMutableMultiValueRef multiValue = ABRecordCopyValue(person,
kABPersonAddressProperty);
**Crashes here*** CFDictionaryRef dict =
ABMultiValueCopyValueAtIndex(multiValue, 0);
Did you check whether 'multiValue' is NULL? CF-based APIs don't l
On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
I am trying to get NSImageView to alias dropped images, but it
refuses.
Nitpick: you mean "antialias". Aliasing is what creates the jaggies,
antialiasing smooths them away.
Just spent an hour looking and trying several variations to no
On 6 Apr 2010, at 16:19, Dave wrote:
Also as far as I can see, there are a couple of draw-backs to doing
it this way. In the example:
-(ClassY*) mClassY
{
if (mClassY == nil)
{
mClassY = [[ClassY alloc] initWithData:someData]:
}
return mClassY;
}
The reasons I don't
On Apr 5, 2010, at 9:10 PM, Chase Meadors wrote:
I've been searching google for a while, and have repeatedly stumbled
across mention of an Objective-C ID3 framework
I looked at it a while back and might still have a copy somewhere;
I'll look for it.
What do you need the tags for? If you
I am trying to get NSImageView to alias dropped images, but it
refuses. Just spent an hour looking and trying several variations to
no avail. Here's what I have done in a subclass of NSImageView.
-(void)drawRect:(NSRect)rect
{
[[NSGraphicsContext currentContext]
setImageInte
Although from the comments it seems to have garnered a job offer from Apple on
the Core Animation team. Kind of interesting really.
On Apr 6, 2010, at 2:26 PM, glenn andreas wrote:
> That relies on undocumented private APIs, which is both off topic for this
> list, and, more importantly, ground
That relies on undocumented private APIs, which is both off topic for this
list, and, more importantly, grounds for getting your app rejected when
submitted to the AppStore.
On Apr 6, 2010, at 2:00 PM, Gleb Dolgich wrote:
> http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-pag
http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html
--
Gleb Dolgich
http://pixelespressoapps.com
On 6 Apr 2010, at 16:56, Laurent Daudelin wrote:
> So, no other response from the regular crowd of "resident experts" on how
> Apple engineers did this?
>
> -Laurent.
On Tue, Apr 6, 2010 at 11:12 AM, Matt Neuburg wrote:
> Anyone can read the iPad docs at Apple's site, without logging in. This is
> public information, so it's open to discussion anywhere. m.
The entire reason I mentioned it is because there have been cases in
the past where, despite the document
I am using the following:
[settings setObject:(NSString *)ABRecordCopyValue(person,
kABPersonFirstNameProperty) forKey:@"First Name"];
[settings setObject:(NSString *)ABRecordCopyValue(person,
kABPersonLastNameProperty) forKey:@"Last Name"];
//
AB
I'm trying to set up a print dialog, so that if the user tries to save to PDF,
it gets a reasonable filename.
I currently have:
NSPrintInfo* pi = [NSPrintInfo sharedPrintInfo];
NSMutableDictionary *dict = [pi dictionary];
[dict setObject: name forKey: NSPrintSavePath];
On Sun, 4 Apr 2010 18:16:14 -0700, Kyle Sluder said:
>On Sun, Apr 4, 2010 at 5:26 PM, Eli Bach wrote:
>> The 3.2 SDK is now under the 'regular' nda, as it's no longer
beta/prerelease. It's a small 2.4 Gb download...
>
>Historically, Scott has needed to give the go-ahead before discussion
>of any
At 8:43 AM -0700 4/6/10, Jon Pugh wrote:
>I had to change to explicitly saving an AliasRecord in an NSData to keep track
>of a file properly.
I should probably clean up and share my code too. This uses an alias relative
to your home folder. The alias is stored in NSUserDefaults under the specif
Hi Sean,
thanks for the reply. Aye I'd thought of packaging it all up in a
package so that only deliberate saboteurs could harm the integrity of
my lovely lovely app. In terms of UUIDs, I think you're right, it'll
be safer - or rather I'll know that it's definitely my fault if it
isn't wo
Thanks, Alex.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://nemesys.dyndns.org
Logiciels Nemesys Software
laurent.daude...@gmail.com
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefro
Hi,
I have a pulldown button (NSPopUpButton) in an accessory view of a save panel.
Before displaying the panel, I populate the popup with the name of the recent
documents. My question is about the enable state of the pulldown menu items.
In IB, I connect the action of the popup to a controller.
How could I make the first row not to be edited or moved in UITableView
I know that with
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath
*)indexPath
the first row could be set not to move but if another cell is dropped above the
first one this will we moved do
Well they may have done it with a private API for CoreImage if that exists (not
sure). THey may have done it with OpenGL. They may have taken their CoreImage
code on desktop and ported a part of it to iBooks and used that.
For you, most likely the best way to do it is using OpenGL.
On Apr 6, 2
So, no other response from the regular crowd of "resident experts" on how Apple
engineers did this?
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://nemesys.dyndns.org
Logiciels Nemesys Software
la
At 9:54 AM +0200 4/6/10, Jean-Daniel Dupas wrote:
>Le 4 avr. 2010 à 19:50, Jens Alfke a écrit :
>
>> You're saying that if I have a FSRef to a file, then the file is moved, the
>> FSRef will still reference the moved file and not the location where it used
>> to be?
>>
>> That's surprising to me,
On Tue, 6 Apr 2010 12:27:18 +0100, Ken Tabb said:
>I have a Snow Leopard non-document based Core Data app (currently XML
>based, but will be SQLite upon release). Supposing I have an entity
>(Employee) that would like to store an auxiliary file (a tiff of their
>mugshot), then as I see it I have t
Hi all,
In 10.5.8 (but not 10.6.x) I see the following in Console.app when
running my app:
unhandled property type encoding: `{?
="minXValue"d"maxXValue"d"minYValue"d"maxYValue"d}'
I have a CALayer subclass that has a property:
typedef struct
{
double minXValue;
double maxXValue
On 2 Apr 2010, at 22:21, Klaus Backert wrote:
Hi, Dave
There are some typing errors in this code, I think, but anyway,
this might be a case of lazy creation of an object inside a getter
of another object. You will find the same e.g. in Apple's code
examples about OpenGL, where the OpenGL
Hi Ken
If someone created another copy of your database, I imagine the last path
component could be duplicated, since it would not know about the other copy and
create the same primary key.
I believe that the URI is made up of the store id / entity / reference object.
With a document based ap
Morning folks,
I have a Snow Leopard non-document based Core Data app (currently XML
based, but will be SQLite upon release). Supposing I have an entity
(Employee) that would like to store an auxiliary file (a tiff of their
mugshot), then as I see it I have the following options:
[1] Stor
Le 4 avr. 2010 à 19:50, Jens Alfke a écrit :
> You're saying that if I have a FSRef to a file, then the file is moved, the
> FSRef will still reference the moved file and not the location where it used
> to be?
>
> That's surprising to me, because FSRefs were created as a replacement for
> FS
Le 3 avr. 2010 à 05:13, Michael Nickerson a écrit :
>
> On Apr 02, 2010, at 10:12 PM, Gideon King wrote:
>
>> That's the instance method. New in 10.6 is the class method of the same
>> name, which is what I need in this case, since I don't have an event to work
>> with.
>>
>> On 03/04/2010,
51 matches
Mail list logo