Hello,
I've found several examples of getting the computer Name but
some give warnings about making a pointer from an integer and
they all fail with signal EXC_BAD_ACCESS here
objc_msgSend_vtable5
_NSDescriptionWithLocaleFunc
_CFStringAppendFormatAndArgumentsAux
_CFStringCreat
I use #1 and it works fine for me. Note that SCDynamicStoreCopyComputerName
might return NULL, and don't forget to CFRelease temp.
In the case of #1, what is the NSLog statement that is failing? And I take it
that name hasn't been autoreleased before you log it - it will only survive
until th
On 20 Jun 2010, at 11:10, Steve Steinitz wrote:
>
>
> According to the docs CFStringRef is toll-free-bridged with NSString and so
> interchangeable. The authors of the examples cite no issues. Could I have
> done something to my project to break toll-free bridging? I confess, I
> haven't t
Hi Paul,
Thanks for your reply.
On 20/6/10, Paul Sanders wrote:
I use #1 and it works fine for me. Note that
SCDynamicStoreCopyComputerName might return NULL, and don't forget to
CFRelease temp.
OK, thanks.
In the case of #1, what is the NSLog statement that is failing? And I
take it tha
It looks like SCDynamicStoreCopyComputerName is not prototyped correctly so the
compiler assumes it returns an int. In what I assume is a 64-bit build this
will lose the top 32 bits of the CFStringRef.
Are you #including ? Other than that I am
compiling 32 bit so I don't know what else might
Hi Paul,
On 20/6/10, Paul Sanders wrote:
It looks like SCDynamicStoreCopyComputerName is not prototyped
correctly so the compiler assumes it returns an int. In what I assume
is a 64-bit build this will lose the top 32 bits of the CFStringRef.
Yes, your diagnosis holds water. I'm building an
>> Are you #including ?
> I wasn't. I added it. Were you wondering if it would make a difference?
Well, yes. Default return type is int. In fact I'm suprised you didn't get a
warning about the function being undefined. My Mac is powered off or I would
check. Does adding the #include sort
Hi,I have seen some Apple's applications having this RADPlugin, iMovie,
FinalCut pro:
/Applications/Final Cut Pro.app/Contents/PlugIns/AVCHD.RADPlug
and sometimes, those files can be interchanged between iMovie and FinalCut Pro,
is there documentation on this? Thanks,
Angelo
_
Hi Paul,
On 20/6/10, Paul Sanders wrote:
Are you #including ?
I wasn't. I added it. Were you wondering if it would make a difference?
Well, yes. Default return type is int. In fact I'm suprised you
didn't get a warning about the function being undefined. My Mac is
powered off or I wou
Hi Jonathan,
Thanks for replying.
On 20/6/10, Jonathan Mitchell wrote:
>> Could I have done something to my project to break toll-free bridging?
> You can't break toll free bridging.
> The NSObject and CF type collaborate to route objects and function calls
> appropriately.
Thanks for that
On 20 Jun 2010, at 14:46, Steve Steinitz wrote:
> Hi Paul,
>
> On 20/6/10, Paul Sanders wrote:
>
Are you #including ?
>>
>>> I wasn't. I added it. Were you wondering if it would make a difference?
The correct import is #import
.
Omitting it causes the compiler to assume integer return
> The correct import is #import
> .
So it is, sorry. It was half-way down my source file.
Regards,
Paul Sanders.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
On Jun 20, 2010, at 6:28 AM, Angelo Chen wrote:
> Hi,I have seen some Apple's applications having this RADPlugin, iMovie,
> FinalCut pro:
> /Applications/Final Cut Pro.app/Contents/PlugIns/AVCHD.RADPlug
> and sometimes, those files can be interchanged between iMovie and FinalCut
> Pro, is there
Hey All,
I'm creating an IBPlugin for my framework and one of the last classes I'm
wanting to add is an NSWindow subclass. I've added a library item to my library
nib, I've set up the image view in it, I've added an NSWindow to my nib and
changed the class and I've hooked up the library item's
On Sun, Jun 20, 2010 at 9:25 AM, Martin Pilkington wrote:
> The issue is, when I then try to drag the window out of the library, IB
> throws an exception because (supposedly) NSWindow doesn't support archiving.
> Even if I make it try to add a plain NSWindow it does the same. I'm not quite
> su
On Jun 20, 2010, at 8:46 AM, Steve Steinitz wrote:
> Hi Paul,
>
> On 20/6/10, Paul Sanders wrote:
>
Are you #including ?
>>
>>> I wasn't. I added it. Were you wondering if it would make a difference?
>>
>> Well, yes. Default return type is int. In fact I'm suprised you
>> didn't get
On Jun 20, 2010, at 11:01 AM, John Joyce wrote:
> This is different from a localhost name. The host name can be very different.
And each active network interface will have a different hostname, just as it
has a different IP address. So I might simultaneously be “jens.foocorp.com” on
Ethernet w
In my project I have some preferences in a tabview style, but I'd like to move
towards a more mac-like interface for this (Safari, Mail)...probably using
NSToolbar.
I've seen examples (usually pretty dated) that reference a few different styles:
1) Tabless NSTabView using a Toolbar with actions
On 20 Jun 2010, at 22:53, Jeremy Matthews wrote:
>
> 1) Tabless NSTabView using a Toolbar with actions (selectTabViewItem:Blah)
> 2) Some third-party frameworks and code (BWToolkit - buggy,
> SS_PrefsController, DBPrefsWindowController, etc)
> 3) Private APIs from Apple (NSPrefernces)
> 4) Toolb
Jeremy,
I would go with a toolbar that swaps views.
I think tab views are a fine control but before NSViewController, they were
used in a tab-less style in order to make it easy to swap views. I think that
approach is outdated. I would use a simple toolbar which you can setup in IB
and swap yo
Thanks Jonathan Mitchell, John Joyce, Paul Sanders and Jens Alfke.
John:
Bingo! CSCopyMachineName() works perfectly.
To answer your question, I want a human-readable machine
identifier, but one that's not tied to the hardware, the way,
say, serial number is.
Our Core Data point-of-sale sys
On Sun, Jun 20, 2010 at 4:26 PM, Steve Steinitz
wrote:
> 1. to temporarily hide sales that are in progress on other machines.
> I currently do that but in a more awkward way,
Might you instead want to make a sale an atomic thing? Perform the
sale on a scratch MOC, and then when the sale
Hi Kyle,
On 20/6/10, Kyle Sluder wrote:
to temporarily hide sales that are in progress on other machines.
I currently do that but in a more awkward way,
Might you instead want to make a sale an atomic thing? Perform the
sale on a scratch MOC, and then when the sale is complete (or voided),
me
On Jun 20, 2010, at 6:26 PM, Steve Steinitz wrote:
> Thanks Jonathan Mitchell, John Joyce, Paul Sanders and Jens Alfke.
>
>
> John:
>
> Bingo! CSCopyMachineName() works perfectly.
>
> To answer your question, I want a human-readable machine identifier, but one
> that's not tied to the hardwa
Hi,
I need to create an AppleScript and run it inside the app to activate another
program, the applescript should call 'add' function the the other program with
different file names, any idea how to achieve this? Thanks,
Angelo
___
Cocoa-dev mailing
On Jun 20, 2010, at 10:53 PM, Angelo Chen wrote:
> Hi,
> I need to create an AppleScript and run it inside the app to activate another
> program, the applescript should call 'add' function the the other program
> with different file names, any idea how to achieve this? Thanks,
> Angelo
Of cour
On Jun 21, 2010, at 12:53 AM, Angelo Chen wrote:
> Hi,
> I need to create an AppleScript and run it inside the app to activate another
> program, the applescript should call 'add' function the the other program
> with different file names, any idea how to achieve this? Thanks,
> Angelo
One app
On Sun, Jun 20, 2010 at 6:25 PM, Steve Steinitz
wrote:
> Each machine runs idle-time code which ensures it has recent data from the
> shared store. It was hard to get right but after a year of tweaking, it
> works well. SQLite has just enough locking capability to make it work.
Be aware that as
28 matches
Mail list logo