Hi,
I have a problem when loading pictures from a server.
I'm doing this in code, but I also tried to load them from "Safari" and
"Firefox" and neither succeeded so the code may not be the problem.
I have paths like: \\10.1.1.11\SomeFolder\FileName.jpg
. I tested the path on
Windows i
Thanks. And yes the controller has content. In my example below it
returns 0 when inside becomeFirstResponder and returns > 0 when I
activate detectPicker in the same application instance.
C.
On 2-Feb-09, at 7:40 AM, Keary Suska wrote:
On Feb 1, 2009, at 10:32 PM, Chris Anderson wrote:
Well, an "acceptable" URL would be something like "smb://serveraddr/sharename/path/to/file
" to be valid.
The original address was a Windows-only server/file (NMB) path. It's
not a URL, nor it is even close to anything that is "working." It is
no different than C:\\path\to\file.
On Feb 2
On Feb 2, 2009, at 9:34 AM, development2 wrote:
I need to get all the textr from my app and plugins. Most of the
text is in .string files so that is easy. But how do I pull the text
form the UI in my .nib/.xib file to go out for translation? Then how
do i put it back properly. I am thinkin
Hi all,
>From what I understand of the Python-Objective-C documentation, "out"
pointer variables (such as "NSError **outError") are actually appended
to the list of return values for a bridge function.
For example:
int returnIntWithError: NSError **outError
from Python would be invoked as:
ret
On Mon, Feb 2, 2009 at 11:03 AM, Scott Ribe wrote:
>> It has long been my understanding that in order to keep a GUI from
>> freezing in Cocoa during LONG methods you have to create a
>> NSOperationQueue and load the method as a NSInvocationOperation as seen
>
> No, you have to run the long operati
On Mon, Feb 2, 2009 at 10:49 AM, wrote:
> It has long been my understanding that in order to keep a GUI from
> freezing in Cocoa during LONG methods you have to create a
> NSOperationQueue and load the method as a NSInvocationOperation as seen
> here:
You don't have to use NSOperationQueue. You
On Feb 2, 2009, at 8:44 AM, Chris Anderson wrote:
Thanks. And yes the controller has content. In my example below it
returns 0 when inside becomeFirstResponder and returns > 0 when I
activate detectPicker in the same application instance.
I was more interested in whether myArrayControlle
Hi All,
Is it possible to get stack trace along with symbol information without
using atos? My application is going to run on Tiger so I don't hve the
option to use the system calls backtrace_symbols.
Thanks in advance
-A
___
Cocoa-dev mailing list (Coco
On Mon, Feb 2, 2009 at 10:24 AM, Jonathan Selander wrote:
> I seem to have tracked the problem a little bit. If I use this line:
>
> _exporter = [[FrameMovieExporter alloc] initWithPath:[savePanel filename]
> codec:codec pixelsWide:size.width pixelsHigh:size.height options:options];
>
> Things are
thank you for the answers.
* The fact is that users want to configure only one toolbar. I thought
about using different toolbars but this requires also to configure
different toolbars, doesn't it?
I have two different views in my window. Each view has additional
toolbar items and some to
Hi, I use code from the QCTV example to export video from my quartz
composition, which works fine on my G5, but when i use it on an intel
macbook, the video export is messed up, as if the image has been
sliced up by a giant tiger paw, smearing all the color out in one
direction.
The stran
http://www.blue-tec.com/locsuite/
On Feb 2, 2009, at 4:34 PM, development2 wrote:
I need to get all the textr from my app and plugins. Most of the
text is in .string files so that is easy. But how do I pull the text
form the UI in my .nib/.xib file to go out for translation? Then how
do i
I have own plugin (i use flash player plugin for my web view component). My
plugin is placed in MyApp.app/Contents/PlugIns/Flash player.plugin
I need use only my plugin, but now i have the next: if user has Flash plugin
already, my app is using it w/o my plugin, but if users hasn't plugin my app
When one gets a validation error on a value received through a binding
(the standard "Discard Change", "OK" dialog), what gets called when
the user chooses to discard?
The situation I have is a table with a custom text field cell,
editable through a custom field editor. When I get a validation er
Yes I understand that. I will have to modify/resize the UI once I have
the strings in there. But the people who we are sending the strings
out to be localized do not know anything about IB, so I don't want to
confuse them or have them screw anything up. Once the strings have
been localized
On Fri, Jan 30, 2009 at 9:27 PM, Michael Ash wrote:
> On Fri, Jan 30, 2009 at 11:25 PM, Nick Zitzmann wrote:
>>
>> On Jan 30, 2009, at 6:32 PM, jurin...@eecs.utk.edu wrote:
>>
>>> I attempted to use NSOperationQueue with NSInvocationOperations and after
>>> several frustrating days found multiple
On Mon, Feb 2, 2009 at 1:59 PM, Barry Wark wrote:
> First of all, thank you for shedding light on this bug; we're all
> benefiting from your investigations.
Thank you very much for saying so, it's much appreciated.
> Is this still the case if all operations are added on the main thread
> (i.e. e
Ok, upon further investigation it would seem that the objects are
initializing in an order I don't understand. I verified this by
overriding the mouseDown method and getting the same results. I also
tried invoking awakeFromNib but that too did not work. I tried a
performSelector:withObjec
> Has anyone had any luck implementing a dynamic sdef using a plugin model?
> Nothing fancy, targeting 10.5+, I haven't
> been able to locate any examples of this actually being done or documentation
> on how to do it.
>
> The 10.5 scripting release notes
> (http://developer.apple.com/ReleaseNot
Hi there,
I hope someone in this list can give me a hint on these issues/
questions:
(Note: all for OSX 10.5.x+)
1. Can I add elements to an NSWindow's title bar (without having to
rebuild the entire window on my own)? In my case I'd just like to put
an image right underneath the window's
I need to get all the textr from my app and plugins. Most of the text
is in .string files so that is easy. But how do I pull the text form
the UI in my .nib/.xib file to go out for translation? Then how do i
put it back properly. I am thinking I may have to change the app and
plugins to put
Hi Ken,
On 31 Jan 2009, at 02:13, Ken Thomases wrote:
On Jan 30, 2009, at 10:58 AM, Dave wrote:
In order to register an Application to handle a protocol, do I
have to change anything other than add URL Types in the Plist
file? I'm having problems with my application not being opened
when
Yea, I saw this and some posts on the apple forum saying NSInputStream
is not the right way, hence the question, what is the right way to
analyze a very large file line by line.
cf the apple thread
http://discussions.apple.com/thread.jspa?threadID=1187120&tstart=400
On 3/2/09 12:57 AM, Alexa
On Feb 2, 2009, at 11:19 AM, Chris Anderson wrote:
Ok, upon further investigation it would seem that the objects are
initializing in an order I don't understand. I verified this by
overriding the mouseDown method and getting the same results. I
also tried invoking awakeFromNib but that t
On Mon, Feb 2, 2009 at 9:16 AM, Vince wrote:
> 1. Can I add elements to an NSWindow's title bar (without having to rebuild
> the entire window on my own)? In my case I'd just like to put an image right
> underneath the window's title.
> (kind of like what the OmniGroup did with the OmniFocus beta:
Have you checked out: http://ridiculousfish.com/blog/archives/2006/11/24/0xf4ee/
?
Look at the source to see how to muck around with really large files.
On Feb 2, 2009, at 9:51 PM, Jacob Rhoden wrote:
Yea, I saw this and some posts on the apple forum saying
NSInputStream is not the right w
Sorry - the link should have been: http://ridiculousfish.com/hexfiend/
On Feb 2, 2009, at 9:51 PM, Jacob Rhoden wrote:
Yea, I saw this and some posts on the apple forum saying
NSInputStream is not the right way, hence the question, what is the
right way to analyze a very large file line by
Ah! Thanks Jesse, that's very straight forward.
So having gotten it working in 10.5... what kind of support is there for
dynamic sdef in 10.4 (if any)? It looks like the value of 'dynamic' for
OSAScriptingDefinition was only enabled in 10.5 but perhaps there is a way
around that?
- Andy
__
On Feb 2, 2009, at 8:42 AM, Jacob Rhoden wrote:
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
I know there are helper functions like
stringWithContentsOfFile:encoding:error:, but this implies having to
load the
On Feb 2, 2009, at 12:35 PM, development2 wrote:
Yes I understand that. I will have to modify/resize the UI once I
have the strings in there. But the people who we are sending the
strings out to be localized do not know anything about IB, so I
don't want to confuse them or have them screw
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
Use mmap. Scan through the bytes to find line ranges, and create
strings from there. Make sure it's deallocated when you're done with
it, then move on to the next ch
On 02 Feb 09, at 02:32, Valentin Dan wrote:
I have paths like: \\10.1.1.11\SomeFolder\FileName.jpg
. I tested the path on
Windows in InternetExplorer and it pops up a Login dialog. After
authentication the picture is loaded and all further requests are ok.
How can I get this behavior on Mac (Fir
I tried replacing "\" with "/" ... same results :(
___
Valentin Dan, Software Engineer Direct: +1 905 886 1833
ext.3047
Email: valentin@masstech.com Office: +40 356-710158
Masstec
On Feb 2, 2009, at 7:34 AM, development2 wrote:
I need to get all the textr from my app and plugins. Most of the
text is in .string files so that is easy. But how do I pull the text
form the UI in my .nib/.xib file to go out for translation? Then how
do i put it back properly. I am thinkin
It does sound like a lot of fun ... but I'm working so I'll live it to
someone else who can afford to play around :)
One more thing, I don't really care about hacking Firefox or Safari ...
I just tried them out to see if my app is dumb or other apps have
problems too :)
__
Hi Guys,
I am wondering what the best way to read a text file, line by line, when
the file size is much larger than available memory.
I know there are helper functions like
stringWithContentsOfFile:encoding:error:, but this implies having to
load the entire file in memory. Google has not bee
> It has long been my understanding that in order to keep a GUI from
> freezing in Cocoa during LONG methods you have to create a
> NSOperationQueue and load the method as a NSInvocationOperation as seen
No, you have to run the long operations on another thread. NSOperationQueue
is supposed to pro
On Feb 1, 2009, at 2:41 PM, Graham Cox wrote:
On 2 Feb 2009, at 1:46 am, Jerry Krinock wrote:
+[NSColor selectedTextBackgroundColor] definitely gives a color
based on System Preferences > Appearance > Highlight Color (for
selected text). However, the color actually used in NSTableView is
On Mon, Feb 2, 2009 at 12:04 PM, Arnab Ganguly wrote:
> Hi All,
> Is it possible to get stack trace along with symbol information without
> using atos? My application is going to run on Tiger so I don't hve the
> option to use the system calls backtrace_symbols.
How many times do you plan to repe
On Mon, Feb 2, 2009 at 9:16 AM, Vince wrote:
> Hi there,
>
> I hope someone in this list can give me a hint on these issues/questions:
>
> (Note: all for OSX 10.5.x+)
>
> 1. Can I add elements to an NSWindow's title bar (without having to rebuild
> the entire window on my own)? In my case I'd just
Hi all, on last week i was writing about how to change window decoration after
launching. After some manipulation i've got enterFullScreenMode. My app has
main window, which has webView. webView is web view object of WebKit class. My
webView can send and receive any arguments to/from javascript.
It has long been my understanding that in order to keep a GUI from
freezing in Cocoa during LONG methods you have to create a
NSOperationQueue and load the method as a NSInvocationOperation as seen
here:
- (IBAction)launchBigTask:(id)sender
{
NSInvocationOperation* theOp = [[NSInvocationOp
Sadly I'm pretty certain there's no API to disable the button. But you
can fairly easily implement the -panel:isValidFilename: delegate
method and return NO to stop the user opening a folder. Calling
NSBeep() at the same time wouldn't be amiss I imagine.
Mike.
On 30 Jan 2009, at 01:18, Ron
It seems to be known that NSDatePickerCell does not work in an
NSTableView [1]. I have just re-discovered that the minor digits are
not editable and that it does not highlight properly, as reported in
2006 [2].
So, instead I tried an NSTextFieldCell with a date formatter. It
edits and h
On Feb 1, 2009, at 3:19 PM, Johannes Plunien wrote:
i've been searching without success for a hint how to receive a
event when a file was dropped on my applications dock icon. I've
already configured my apps properties to allow extensions "png jpg
jpeg gif" with store type "Binary" and "Rol
Oh yeah, they already have the documentation with the screen shots in
english...
Well I have worked with companies in the past who "supposedly" knew
how to work with nibs, and the screwed them all up for us. I really
don't want any body near the nibs, but me :) Just want to save myself
a
On Mon, Feb 2, 2009 at 3:51 PM, Jacob Rhoden wrote:
> Yea, I saw this and some posts on the apple forum saying NSInputStream is
> not the right way, hence the question, what is the right way to analyze a
> very large file line by line.
>
> cf the apple thread
> http://discussions.apple.com/thread.
So the fact that I am referencing a controller inside
becomeFirstResponder hasn't raised any alarms with anyone yet so I
could assume that it's ok to do so. If this is the case then I'm
either doing something wrong somewhere or perhaps there is an issue
with subclassing NSDatePicker. I wi
I seem to have tracked the problem a little bit. If I use this line:
_exporter = [[FrameMovieExporter alloc] initWithPath:[savePanel
filename] codec:codec pixelsWide:size.width pixelsHigh:size.height
options:options];
Things are messed up, but if I hardcode th resolution to 640x480, the
i
Has anyone had any luck implementing a dynamic sdef using a plugin model?
Nothing fancy, targeting 10.5+, I haven't been able to locate any examples of
this actually being done or documentation on how to do it.
The 10.5 scripting release notes
(http://developer.apple.com/ReleaseNotes/Cocoa/Fou
On Feb 2, 2009, at 1:28 AM, mmalc Crawford wrote:
On Jan 31, 2009, at 9:35 PM, Phillip Hall wrote:
I then read about the insertObject: inAtIndex: method.
Reading the documentation it seems this should be called by the
NSArrayController if its implemented by its content array (in my
case
On Jan 31, 2009, at 8:07 AM, Ferhat Ayaz wrote:
Hello,
I have added - (BOOL)validateToolbarItem:(NSToolbarItem
*)toolbarItem to my code, which will control whether a toolbar item
is enabled or not. However, I need a something similar to control
whether a toolbar item is visible or not.
I'm getting a crash (EXC_BAD_ACCESS) inside an internal NSOutlineView
method. I'm sure it's my own fault but I'd like to know where I should
be looking to fix it. The stack trace is:
#0 0x92abf112 in -[NSOutlineView
_adjustSelectionForItemEntry:numberOfRows:adjustFieldEditorIfNecessary:]
The strings are not ok. There is no \ in any valid URL, it is an
error. That is _only_ working on windows file paths.
Try using / instead.
atze
ps file:///\\ looks wrong as well.
Am 02.02.2009 um 11:32 schrieb Valentin Dan:
Hi,
I have a problem when loading pictures from a serve
On Feb 1, 2009, at 10:32 PM, Chris Anderson wrote:
I've created a subclass of NSDatePicker to catch when a date picker
has focus. I have overridden the becomeFirstResponder method and
indeed it detects when it has focus. The code inside the method does
work except for any IBOutlets that I
NSInputStream?
atze
Am 02.02.2009 um 14:42 schrieb Jacob Rhoden:
Hi Guys,
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
I know there are helper functions like
stringWithContentsOfFile:encoding:error:
On Feb 2, 2009, at 3:34 PM, Graham Cox wrote:
I'm getting a crash (EXC_BAD_ACCESS) inside an internal
NSOutlineView method. I'm sure it's my own fault but I'd like to
know where I should be looking to fix it. The stack trace is:
#0 0x92abf112 in -[NSOutlineView
_adjustSelectionForItemE
On Feb 2, 2009, at 11:48 AM, Mike Abdullah wrote:
Sadly I'm pretty certain there's no API to disable the button. But
you can fairly easily implement the -panel:isValidFilename: delegate
method and return NO to stop the user opening a folder. Calling
NSBeep() at the same time wouldn't be am
On 3 Feb 2009, at 10:44 am, Corbin Dunn wrote:
On Feb 2, 2009, at 3:34 PM, Graham Cox wrote:
I'm getting a crash (EXC_BAD_ACCESS) inside an internal
NSOutlineView method. I'm sure it's my own fault but I'd like to
know where I should be looking to fix it. The stack trace is:
#0 0x92ab
On Feb 2, 2009, at 4:02 PM, Graham Cox wrote:
On 3 Feb 2009, at 10:44 am, Corbin Dunn wrote:
On Feb 2, 2009, at 3:34 PM, Graham Cox wrote:
I'm getting a crash (EXC_BAD_ACCESS) inside an internal
NSOutlineView method. I'm sure it's my own fault but I'd like to
know where I should be loo
On Feb 2, 2009, at 3:47 PM, Corbin Dunn wrote:
On Feb 2, 2009, at 11:48 AM, Mike Abdullah wrote:
Sadly I'm pretty certain there's no API to disable the button. But
you can fairly easily implement the -panel:isValidFilename:
delegate method and return NO to stop the user opening a folder.
You know, I completely missed that. I've got it working just fine now.
Thanks for helping me out.
On Mon, Feb 2, 2009 at 2:08 AM, Stephen J. Butler
wrote:
> On Sun, Feb 1, 2009 at 1:36 PM, Todd Atkins wrote:
>> What happens is that gNames ends up with the truncated string value.
>> The output of
Hi,
For the majority of my OS X programming life, I've been using
Objective C exclusively. However, I now have a reason to want to use
some C++ standard template libraries, and have started looking into
Objective C++. I've found the documentation on Objective C++ lacking,
and was hoping if someone
Hi,
The build system uses the file extension of the source file to
determine how to treat the code in the file. .m files get treated as
Objective-C (by default). .mm files get treated as Objective-C++. Try
renaming your source code file from sourcecode.cpp.objcpp to
sourcecode.mm and se
I guess I should have been more clear.
My Objective C++ file is named with an .mm extension. The
"sourcecode.cpp.objcpp" specification is the XCode setting that tells
the compiler how to treat the file.
jim
On Tue, Feb 3, 2009 at 2:16 AM, Wayne Packard wrote:
> Hi,
>
> The build system uses the
I'm having trouble getting grouping separators to show up in a table
view. In IB, I've assigned a number formatter to a table column's text
field cell and set up the formatter with grouping size 3 and turned on
Grouping Separator. In tableView:objectValueForTableColumn:row: I'm
returning an
This code works for me. Can you see any fundamental difference between
it and what you have? It compiles with no error or warnings and it
logs "The list contains 1 items" when run.
//ObjCPPController.m
#import "ObjCPPController.h"
#import "SomeObjCPPClass.h"
@implementation ObjCPPController
I have an overridden -updateTrackingAreas to compute some tracking
areas in a table view. This is being called when I move the vertical
scroll bar, but I have an event loop to handle drag operations in
which I start NSPeriodic events and call -autoScroll on the view when
the use drags out
Ah.
I've been compiling with LLVM GCC 4.2. Compiling with GCC 4.0 works fine.
I wonder if it should work with LLVM.
jim
On Tue, Feb 3, 2009 at 2:39 AM, Wayne Packard wrote:
> This code works for me. Can you see any fundamental difference between it
> and what you have? It compiles with no err
At 2:08 +0100 3/2/09, James Trankelson wrote:
For the majority of my OS X programming life, I've been using
Objective C exclusively. However, I now have a reason to want to use
some C++ standard template libraries, and have started looking into
Objective C++. I've found the documentation on Objec
On Feb 2, 2009, at 1:49 PM, Seth Willits wrote:
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
Use mmap. Scan through the bytes to find line ranges, and create
strings from there. Make sure it's deallocated when
Looking to start a cocoa group here in Arizona. Phoenix and metro area.
Anyone?
Gary
___
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-admin
On Feb 2, 2009, at 5:53 PM, Joar Wingfors wrote:
I am wondering what the best way to read a text file, line by
line, when the file size is much larger than available memory.
Use mmap. Scan through the bytes to find line ranges, and create
strings from there. Make sure it's deallocated when
On Feb 2, 2009, at 6:02 PM, Seth Willits wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file to find
occurrences of that delimiter.
Is there
On 3/02/2009 8:41 AM, Kenneth Bruno II wrote:
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
For very large files you probably want to use NSFileHandle. With the
method readDataOfLength: you can read the file in chunk
Thanks Corbin. This oddity has led me down the path of why my
awakeFromNib was being called twice so there was a flaw in my design.
I have reworked becomeFirstResponder to use NSNotification instead and
that seems to be working quite well.
Chris
On 2-Feb-09, at 1:12 PM, Corbin Dunn wrote:
Does it work if you set your collation order to Thai in the
International Pref pane (Languages tab)?
If so, you need to use compare:options:locale: and always pass the
"th" locale.
Deborah Goldsmith
Apple Inc.
golds...@apple.com
On Jan 30, 2009, at 4:58 AM, Gerriet M. Denkmann wrote:
I ha
On Feb 2, 2009, at 9:29 PM, Peter Duniho wrote:
On Feb 2, 2009, at 6:02 PM, Seth Willits wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file t
On Feb 2, 2009, at 6:56 PM, Kenneth Bruno II wrote:
On Feb 2, 2009, at 9:29 PM, Peter Duniho wrote:
Is there not a Cocoa class that handles character encoding and line-
based reading from files, streams, etc.? And an equivalent one for
writing?
That seems like an odd omission for a compr
On Feb 2, 2009, at 6:02 PM, Seth Willits wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file to find
occurrences of that delimiter.
How do
On Feb 2, 2009, at 7:50 PM, Joar Wingfors wrote:
How do you know what delimiter string to use? Another thing that
you'd have to determine, guess or be told, right? In general I would
guess that it in this case almost always would be impossible and /
or inappropriate to attempt to determine
On Feb 1, 2009, at 8:37 PM, Michael Ash wrote:
Thanks to both you and Rob for repeating the experiment. Interesting
that it's so variable. On my computer it would occasionally require
several million to crash, but most of the time it explodes within the
first few hundred thousand.
I've been te
I discovered a workaruond for this. Although the 'Enabled' binding on
the table column does not work, for some strange reason, the
'Editable' and also the 'Text Color' do work. So with these two I can
get the desired effect.
___
Cocoa-dev maili
On Feb 2, 2009, at 7:50 PM, Joar Wingfors wrote:
On Feb 2, 2009, at 6:02 PM, Seth Willits wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file to
On Feb 2, 2009, at 7:50 PM, Joar Wingfors wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file to
find occurrences of that delimiter.
How do
On 03/02/2009, at 2:30 PM, Peter Duniho wrote:
On my computer, the one time I saw it crash, it was an
NSInvalidArgumentException, complaining that in "-[MyOperation
start]" the "receiver has already started or finished". I'm
wondering if this is the exception everyone sees, or if the actu
On Mon, Feb 2, 2009 at 11:30 PM, Peter Duniho wrote:
> On Feb 1, 2009, at 8:37 PM, Michael Ash wrote:
>
>> Thanks to both you and Rob for repeating the experiment. Interesting
>> that it's so variable. On my computer it would occasionally require
>> several million to crash, but most of the time i
On Mon, Feb 2, 2009 at 8:53 PM, Joar Wingfors wrote:
>
> On Feb 2, 2009, at 1:49 PM, Seth Willits wrote:
>
>>> I am wondering what the best way to read a text file, line by line, when
>>> the file size is much larger than available memory.
>>
>> Use mmap. Scan through the bytes to find line ranges
89 matches
Mail list logo