Tag: object

62 votes
10 answers
2.4K views
Assembly code vs Machine code vs Object code?

What is the difference between object code, machine code and assembly code? Can you give a visual example of

avatar
Xavier
0 1 0 9
asked 07 September, 2021
64 votes
1 answers
1K views
Does TestCafe support sections in page objects (like Nightwatch does) ? If not, how can we achieve this in TestCafe?

We have rich UI with lot of web elements & multi levels of elements on UI segregated into sections. As p

avatar
Venice
0 1 0 9
asked 07 September, 2021
51 votes
1 answers
935 views
How to add nested functions javascript in custom commands for Nightwatch testing- forEach -loop through elements

Hi I am new to javascript and Nightwatch, I am a manual tester who started doing automation about 6 months ago

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
1.7K views
How to update an "array of objects" with Firestore?

I'm currently trying Firestore, and I'm stuck at something very simple: "updating an array (aka a su

avatar
Stacia
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
1.5K views
How to perform .Max() on a property of all objects in a collection and return the object with maximum value

I have a list of objects that have two int properties. The list is the output of another linq query. The

avatar
Dario
0 1 0 9
asked 07 September, 2021
55 votes
11 answers
1.2K views
Remove duplicates in the list using linq

I have a class Items with properties (Id, Name, Code, Price). The List of Items is populated with duplicated

avatar
Winford
0 1 0 9
asked 07 September, 2021
60 votes
20 answers
3.1K views
Dynamic LINQ OrderBy on IEnumerable<T> / IQueryable<T>

I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a sql-like string (e.g. Orde

avatar
Patsy
0 1 0 9
asked 07 September, 2021
62 votes
21 answers
1.9K views
Add bottom border line to UI TextField view in SwiftUI / Swift / Objective-C / Xamarin

I would like to keep the border at the bottom part only in UITextField. But I don't know how we can keep

avatar
Rudy
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
1.6K views
What does the NS prefix mean?

Many classes in Cocoa/Cocoa Touch have the NS prefix. What does it mean?

avatar
Serina
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
497 views
Send and receive messages through NSNotificationCenter in Objective-C?

I am attempting to send and receive messages through NSNotificationCenter in Objective-C. However, I haven&apo

avatar
Tana
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
1K views
How do I test if a string is empty in Objective-C?

How do I test if an NSString is empty in Objective-C?

avatar
Deedee
0 1 0 9
asked 07 September, 2021
54 votes
25 answers
2.4K views
How to link to apps on the app store

I am creating a free version of my iPhone game. I want to have a button inside the free version that takes peo

avatar
Suzan
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
738 views
Placeholder in UITextView

My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can

avatar
Corey
0 1 0 9
asked 07 September, 2021
57 votes
19 answers
2.3K views
How do I create delegates in Objective-C?

I know how delegates work, and I know how I can use them. But how do I create them?

avatar
Forrest
0 1 0 9
asked 07 September, 2021
53 votes
20 answers
727 views
How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:?

Is there a way to call a block with a primitive parameter after a delay, like using performSelector:withObject

avatar
Xavier
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
2.9K views
How to check iOS version?

I want to check if the iOS version of the device is greater than 3.1.3 I tried things like: [[UIDevice curren

avatar
Boyd
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
499 views
How do I convert an NSString value to NSData?

How do I convert an NSString value to NSData?

avatar
Winford
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
542 views
How do I animate constraint changes?

I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there is

avatar
Georgie
0 1 0 9
asked 07 September, 2021
61 votes
14 answers
1.3K views
Constants in Objective-C

I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
63 votes
23 answers
2.2K views
How do I check if a string contains another string in Objective-C?

How can I check if a string (NSString) contains another smaller string? I was hoping for something like: NSS

avatar
Thurman
0 1 0 9
asked 07 September, 2021