Re: Very strange Cocoa application issue.
Re: Very strange Cocoa application issue.
- Subject: Re: Very strange Cocoa application issue.
- From: Cláudio Rodrigues <email@hidden>
- Date: Sun, 11 Feb 2007 23:15:30 -0500
- Thread-topic: Very strange Cocoa application issue.
Thanks for the help so far guys!
Let me explain what the app does and what I see as 'wrong' when running the
release build.
The app simply gets the content (text) of NSTextview and does a XOR with the
text (character by character). So basically I get each letter, convert the
letter to integer (int), do a XOR with a key, convert the result to char
(chr) and add the result to another string variable.
The end result is a string of the same size as [NSTextview text] but
encrypted with a simple and stupid XOR method. Do not ask me why I am
writing this app. :-)
When in debug mode the XOR works as expected. I have one button on the app
that when pressed, performs the XOR. Works. If you press one time you see
the scrambled string. Press it again and as it does the XOR with the
scrambled string, the result is of course the initial string.
Something like:
Initial string is "ABCDEF". Press the button you get "$#*&@12" (just as an
example). Press it again and you get "ABCDEF".
When running the release build you press the button once and you get a
string that is not the same as I see in the debug build. It is different
(and it should not be as I am doing the XOR with the same key right?). Press
the button again and you do not even see the first string! You see something
else! It is like if the key used is getting changed/not initialized every
time the button is pressed. I can post the stupid code if it helps if you
promise not to laugh. Remember I am a NEWBIE. :-)
For the second question, I will try to find more information about what the
Zerolink means but that is exact what I am trying to do, run the debug build
on that machine. But hear to the weird part: as I thought it was something
on my Macbook that was preventing the application to run on the PPC Mac, I
installed Xcode on the PPC Mac and compiled (debug build) the app on that
machine. Build and run, and it WORKS. This for the account I am using to
compile, a local account on the PPC Mac.
So by logging off that account and now logging in on the same PPC Mac with a
network account, trying to launch the app and it does NOT launch. It shows
up in the dock for a couple seconds and then it disappears. Dies silently.
With the local account I used to compile, it works.
Thanks!
CR
> From: Gregory Weston <email@hidden>
> Date: Sun, 11 Feb 2007 20:26:10 -0500
> To: <email@hidden>
> Subject: Re: Very strange Cocoa application issue.
>
> CR wrote:
>
>> 1. When I build the app, I can see the active build configuration
>> is set to
>> 'Debug' and when the app is built that way, it works as expected. If I
>> change that to 'Release' and build and run, the application does
>> NOT work
>> properly (it is simply a text box that gets the text and does a XOR
>> with
>> another char). Any ideas why?
>
> As others have said, not without more information from you.
>
>> 2. That is the hardest one. The app works fine on my MacBook (I am
>> logged in
>> using a LOCAL account). But on another Mac I have that is connected
>> to a
>> Windows network, people logon using the windows domain account (so
>> there are
>> no local accounts on the Mac itself). These users are NOT able to
>> launch the
>> application. It launches, shows up in the dock and then it dies
>> (closes
>> silently). If I logon using a LOCAL account on that Mac then the app
>> works!!! What could be the issue here??? I have no clue whatsoever
>> and as I
>> am no OS X guru I do not even know how to start troubleshooting
>> such issue.
>
>
> This is almost certainly because what they're trying to run is your
> debug build, which is almost certainly built with ZeroLink, which
> will never run from any machine other than the one on which it was
> built because certain portions of the runtime haven't actually been
> linked into the built app in that mode.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden